From 57e7e7d60e69463c23865f3db499da2f9714c227 Mon Sep 17 00:00:00 2001 From: lionellloh Date: Tue, 30 Jun 2020 23:23:19 +0800 Subject: [PATCH] small fix: res -> response --- Library/Homebrew/utils/github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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