cask/audit.rb: minor cleanup

This commit is contained in:
Maxim Belkin 2020-09-21 04:40:32 -05:00
parent e082da45b8
commit 0d3cc7cd82
No known key found for this signature in database
GPG Key ID: AC71560D4C5F2338

View File

@ -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?