Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 8, 2024
1 parent 00fdc5e commit 2091961
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/formulary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,9 @@ def self.try_new(ref, from: T.unsafe(nil), warn: false)
return unless (match = ref.match(HOMEBREW_DEFAULT_TAP_FORMULA_REGEX))

name = alias_name = T.cast(match[:name], String)
unless Homebrew::API::Formula.all_formulae.key?(name) || Homebrew::API::Formula.all_aliases.key?(name) || Homebrew::API::Formula.all_renames.key?(name)
if !Homebrew::API::Formula.all_formulae.key?(name) &&
!Homebrew::API::Formula.all_aliases.key?(name) &&
!Homebrew::API::Formula.all_renames.key?(name)
return
end

Expand Down

0 comments on commit 2091961

Please sign in to comment.