From e1bd0134ba68f4c43cda9dd8d77da41a62223c6e Mon Sep 17 00:00:00 2001 From: Issy Long Date: Mon, 26 Feb 2024 15:15:51 +0000 Subject: [PATCH] themeengine: Fix RuboCop `Performance/MapCompact` offenses --- Casks/t/themeengine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/t/themeengine.rb b/Casks/t/themeengine.rb index bfced9f58d..9b47c53d0f 100644 --- a/Casks/t/themeengine.rb +++ b/Casks/t/themeengine.rb @@ -10,10 +10,10 @@ cask "themeengine" do livecheck do url :url strategy :git do |tags| - tags.map do |tag| + tags.filter_map do |tag| match = tag.match(/^(\d+(?:\.\d+)*)\((\d+)\)$/i) "#{match[1]},#{match[2]}" if match - end.compact + end end end