Merge pull request #17805 from Homebrew/ww/fix-comment

This commit is contained in:
Patrick Linnane 2024-07-18 09:18:52 -07:00 committed by GitHub
commit db3d5878ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,8 +118,7 @@ module Homebrew
cmd += ["--cert-identity", signing_workflow] if signing_workflow.present?
# Fail early if we have no credentials. The command below invariably
# fails without them, so this saves us a network roundtrip before
# presenting the user with the same error.
# fails without them, so this saves us an unnecessary subshell.
credentials = GitHub::API.credentials
raise GhAuthNeeded, "missing credentials" if credentials.blank?