From d93755933f36f59aeeacf8e90e5005be57fcd403 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 12 Jun 2024 17:13:31 +0100 Subject: [PATCH] docs: brew style --fix --- docs/Brew-Livecheck.md | 2 +- docs/External-Commands.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Brew-Livecheck.md b/docs/Brew-Livecheck.md index 36cfce54bf8c6a..bca5bde5ac25b9 100644 --- a/docs/Brew-Livecheck.md +++ b/docs/Brew-Livecheck.md @@ -188,7 +188,7 @@ A `strategy` block for `Git` is a bit different, as the block receives an array livecheck do url :stable strategy :git do |tags| - tags.map { |tag| tag[/^(\d{4}-\d{2}-\d{2})$/i, 1]&.gsub(/\D/, "") }.compact + tags.filter_map { |tag| tag[/^(\d{4}-\d{2}-\d{2})$/i, 1]&.gsub(/\D/, "") } end end ``` diff --git a/docs/External-Commands.md b/docs/External-Commands.md index ec5f5f4c84ca7e..05ab51e46a2bba 100644 --- a/docs/External-Commands.md +++ b/docs/External-Commands.md @@ -73,9 +73,9 @@ module Homebrew Do something. Place a description here. EOS switch "-f", "--force", - description: "Force doing something in the command." + description: "Force doing something in the command." flag "--file=", - description: "Specify a file to do something with in the command." + description: "Specify a file to do something with in the command." comma_array "--names", description: "Add a list of names to the command."