From eca528ccccf2c73c6059fc821f756de7630c6251 Mon Sep 17 00:00:00 2001 From: Lionell Loh Jian An Date: Fri, 19 Jun 2020 03:38:36 +0800 Subject: [PATCH] util github: remove nil as that is already expected behaviour Co-authored-by: Mike McQuaid --- 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 244bb397f2..2a6a67e913 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -480,7 +480,7 @@ module GitHub res = GitHub.open_api("#{GitHub::API_URL}/repos/#{user}/#{repo}/license") return unless res.key?("license") - res["license"]["spdx_id"] || nil + res["license"]["spdx_id"] rescue GitHub::HTTPNotFoundError nil end