From a0b7580dc47ddcbbb9708980d131bfc2171926ce Mon Sep 17 00:00:00 2001 From: nandahkrishna Date: Wed, 17 Feb 2021 01:18:25 +0530 Subject: [PATCH] Fix eql? in Cask::Cask --- Library/Homebrew/cask/cask.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/cask.rb b/Library/Homebrew/cask/cask.rb index 2475b84da0..caf666397c 100644 --- a/Library/Homebrew/cask/cask.rb +++ b/Library/Homebrew/cask/cask.rb @@ -162,7 +162,7 @@ module Cask end def eql?(other) - token == other.token + instance_of?(other.class) && token == other.token end alias == eql?