Skip to content

Commit

Permalink
cask/installer: skip unreachable nil return of DeprecateDisable.mes…
Browse files Browse the repository at this point in the history
…sage
  • Loading branch information
cho-m committed Dec 20, 2024
1 parent d09fb09 commit 81b7e38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/cask/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ def install
raise
end

sig { void }
def check_deprecate_disable
deprecate_disable_type = DeprecateDisable.type(@cask)
return if deprecate_disable_type.nil?

message = DeprecateDisable.message(@cask)
message = DeprecateDisable.message(@cask).to_s
message_full = "#{@cask.token} has been #{message}"

case deprecate_disable_type
Expand Down

0 comments on commit 81b7e38

Please sign in to comment.