Merge pull request #8785 from maxim-belkin/cask-audit-cleanup

cask/audit.rb: minor cleanup
This commit is contained in:
Maxim Belkin 2020-09-21 07:34:17 -07:00 committed by GitHub
commit 0a0577357f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,7 +507,7 @@ module Cask
end end
def check_github_repository def check_github_repository
return unless @new_cask return unless new_cask?
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*})
return if user.nil? return if user.nil?
@ -531,7 +531,7 @@ module Cask
end end
def check_bitbucket_repository def check_bitbucket_repository
return unless @new_cask return unless new_cask?
user, repo = get_repo_data(%r{https?://bitbucket\.org/([^/]+)/([^/]+)/?.*}) user, repo = get_repo_data(%r{https?://bitbucket\.org/([^/]+)/([^/]+)/?.*})
return if user.nil? return if user.nil?