diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 54ead437d0..64f87cdac1 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -111,7 +111,6 @@ module Homebrew RUBY fa.audit_license - p fa.problems expect(fa.problems.first).to match "No license specified for package." end diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 2a6a67e913..6c963fe665 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -477,8 +477,8 @@ module GitHub end def get_repo_license(user, repo) - res = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") - return unless res.key?("license") + response = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") + return unless response.key?("license") res["license"]["spdx_id"] rescue GitHub::HTTPNotFoundError