diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 75d9fe7f07bcbd3311580b036cd6312d0f30be24..cab1b48dbc3b317fa3645242db1b2a7b8a811df1 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -507,7 +507,7 @@ module Cask end def check_github_repository - return unless @new_cask + return unless new_cask? user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) return if user.nil? @@ -531,7 +531,7 @@ module Cask end def check_bitbucket_repository - return unless @new_cask + return unless new_cask? user, repo = get_repo_data(%r{https?://bitbucket\.org/([^/]+)/([^/]+)/?.*}) return if user.nil?