diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index feaee96a82..05472804fd 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -894,7 +894,7 @@ module Cask sig { returns(T::Boolean) } def bad_osdn_url? - URI(cask.url.to_s).host.match?(%r{^(?:\w+\.)*osdn\.jp(?=/|$)}) + T.must(URI(cask.url.to_s).host).match?(%r{^(?:\w+\.)*osdn\.jp(?=/|$)}) end # sig { returns(String) }