Skip to content

Commit

Permalink
Fix compact_blank style
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Jan 22, 2024
1 parent 2f8ad2f commit 1a40468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/enumerable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ def compact_blank = T.unsafe(self).reject(&:blank?)

class Hash
# Hash#reject has its own definition, so this needs one too.
def compact_blank = reject { T.unsafe(_2).blank? }
def compact_blank = reject { |_k, v| T.unsafe(v).blank? }
end

0 comments on commit 1a40468

Please sign in to comment.