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:
Lionell Loh Jian An 2020-06-25 15:36:55 +08:00 committed by GitHub
parent 97ae608890
commit 22baff39bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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`*]