Merge pull request #16835 from reitermarkus/tap-config-private

Don't store tap config when value is unknown.
This commit is contained in:
Mike McQuaid 2024-03-06 15:33:54 +00:00 committed by GitHub
commit 3ea74ea417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -969,7 +969,10 @@ class Tap
if custom_remote? if custom_remote?
true true
else else
GitHub.private_repo?(full_name) # Don't store config if we don't know for sure.
return false if (value = GitHub.private_repo?(full_name)).nil?
value
end end
rescue GitHub::API::HTTPNotFoundError rescue GitHub::API::HTTPNotFoundError
true true