From df3d017739769b7c6cb522d8732468d894d72e17 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 30 Jun 2018 06:01:01 +0200 Subject: [PATCH 1/2] Fix `Cask#full_name`. --- Library/Homebrew/cask/lib/hbc/cask.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 9407947e6f..e318880153 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -56,7 +56,7 @@ module Hbc end def full_name - return token if tap.user == "Homebrew" + return token if tap&.user == "Homebrew" qualified_token end From 20b990a19fcef82ff93553811be8c51c2c4c4dcf Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 30 Jun 2018 06:03:51 +0200 Subject: [PATCH 2/2] Remove `Cask#qualified_token`. --- Library/Homebrew/cask/lib/hbc/cask.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index e318880153..8ec40f68dd 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -56,12 +56,8 @@ module Hbc end def full_name - return token if tap&.user == "Homebrew" - qualified_token - end - - def qualified_token return token if tap.nil? + return token if tap.user == "Homebrew" "#{tap.name}/#{token}" end