Merge pull request #15627 from Bo98/tap-audit-no-api

tap_auditor: fix API data getting mixed in
This commit is contained in:
Mike McQuaid 2023-07-04 16:25:38 +01:00 committed by GitHub
commit 4c8c9b5d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ module Homebrew
sig { params(tap: Tap, strict: T.nilable(T::Boolean)).void }
def initialize(tap, strict:)
Homebrew.with_no_api_env do
@name = tap.name
@path = tap.path
@cask_tokens = tap.cask_tokens
@ -26,6 +27,7 @@ module Homebrew
formula_name.split("/").last
end
end
end
sig { void }
def audit