diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 74afca74be..296059cca8 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -478,7 +478,7 @@ module GitHub response = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") return unless response.key?("license") - res["license"]["spdx_id"] + response["license"]["spdx_id"] rescue GitHub::HTTPNotFoundError nil end