Skip to content

Commit

Permalink
Merge pull request #9431 from RandomDSdevel/restore-semantically-sign…
Browse files Browse the repository at this point in the history
…ificant-indentation-lost-accidentally-in-PR-9398

[Library/Homebrew/cli/named_args.rb] `to_formulae_to_casks()`:  Reasssociate its `rescue` Block with the Correct Enclosing Scope
  • Loading branch information
reitermarkus committed Dec 6, 2020
2 parents f901b57 + c237223 commit 596b4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/cli/named_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def to_formulae_and_casks(only: nil, ignore_unavailable: nil, method: nil)
@to_formulae_and_casks ||= {}
@to_formulae_and_casks[only] ||= downcased_unique_named.flat_map do |name|
load_formula_or_cask(name, only: only, method: method)
rescue NoSuchKegError, FormulaUnavailableError, Cask::CaskUnavailableError
ignore_unavailable ? [] : raise
rescue NoSuchKegError, FormulaUnavailableError, Cask::CaskUnavailableError
ignore_unavailable ? [] : raise
end.uniq.freeze
end

Expand Down

0 comments on commit 596b4f6

Please sign in to comment.