Don't store tap config when value is unknown.

This commit is contained in:
Markus Reiter 2024-03-06 15:18:52 +01:00
parent d55fa09d1e
commit c7f4e006f4
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -963,7 +963,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