Skip to content

Commit

Permalink
Style tweaks
Browse files Browse the repository at this point in the history
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bayandin and MikeMcQuaid committed Aug 25, 2023
1 parent e2e14bb commit 504c325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/utils/shared_audits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def github_repo_data(user, repo)
rescue GitHub::API::HTTPNotFoundError
nil
rescue GitHub::API::AuthenticationFailedError => e
e.message.match?(GITHUB_IP_ALLOWLIST_ERROR) ? nil : raise
raise unless e.message.match?(GITHUB_IP_ALLOWLIST_ERROR)
end

def github_release_data(user, repo, tag)
Expand All @@ -39,7 +39,7 @@ def github_release_data(user, repo, tag)
rescue GitHub::API::HTTPNotFoundError
nil
rescue GitHub::API::AuthenticationFailedError => e
e.message.match?(GITHUB_IP_ALLOWLIST_ERROR) ? nil : raise
raise unless e.message.match?(GITHUB_IP_ALLOWLIST_ERROR)
end

def github_release(user, repo, tag, formula: nil, cask: nil)
Expand Down

0 comments on commit 504c325

Please sign in to comment.