Apply suggestions from code review
Applying style-related suggestions from code review Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>
This commit is contained in:
parent
97ae608890
commit
22baff39bc
@ -547,8 +547,8 @@ module Homebrew
|
||||
|
||||
def audit_github_repository
|
||||
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @new_formula
|
||||
user ||=nil
|
||||
repo ||=nil
|
||||
user ||= nil
|
||||
repo ||= nil
|
||||
return if user.nil?
|
||||
|
||||
warning = SharedAudits.github(user, repo)
|
||||
@ -560,7 +560,7 @@ module Homebrew
|
||||
def audit_gitlab_repository
|
||||
user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @new_formula
|
||||
user ||= nil
|
||||
repo ||=nil
|
||||
repo ||= nil
|
||||
return if user.nil?
|
||||
|
||||
warning = SharedAudits.gitlab(user, repo)
|
||||
|
||||
@ -1031,7 +1031,7 @@ directory.
|
||||
Update SPDX license data in the Homebrew repository.
|
||||
|
||||
* `--fail-if-changed`:
|
||||
Return a failing status code if current license data's version is different fromthe upstream. This can be used to notify CI when the SPDX license data is out of date.
|
||||
Return a failing status code if the current license data's version is different from the upstream. This can be used to notify CI when the SPDX license data is out of date.
|
||||
|
||||
### `update-test` [*`options`*]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user