Skip to content

Commit

Permalink
Simplify Tap#config.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Mar 1, 2024
1 parent f1eea64 commit 6b1b75a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,11 @@ def private?
end

# {TapConfig} of this {Tap}.
sig { returns(TapConfig) }
def config
@config ||= begin
raise TapUnavailableError, name unless installed?
raise TapUnavailableError, name unless installed?

TapConfig.new(self)
end
@config ||= TapConfig.new(self)
end

# True if this {Tap} has been installed.
Expand Down

0 comments on commit 6b1b75a

Please sign in to comment.