small fix: res -> response

This commit is contained in:
lionellloh 2020-06-30 23:23:19 +08:00
parent 1422542a07
commit 57e7e7d60e

View File

@ -478,7 +478,7 @@ module GitHub
response = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") response = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license")
return unless response.key?("license") return unless response.key?("license")
res["license"]["spdx_id"] response["license"]["spdx_id"]
rescue GitHub::HTTPNotFoundError rescue GitHub::HTTPNotFoundError
nil nil
end end