cask/audit.rb: minor cleanup
This commit is contained in:
parent
e082da45b8
commit
0d3cc7cd82
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user