diff options
| author | Jack Nagel | 2013-11-05 16:02:26 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-05 16:02:26 -0600 |
| commit | c6cb768de3aeabaf5ac345aa990b2e12c63a7562 (patch) | |
| tree | a77fb212a992acdc7c6d4e3191fe0aafd99c2583 /Library | |
| parent | 612d09b27a1129f4af85c9e9605ac77bd077fa90 (diff) | |
| download | homebrew-c6cb768de3aeabaf5ac345aa990b2e12c63a7562.tar.bz2 | |
Dependency: tighten equality check
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dependency.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index d218adb69..df22eed90 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -17,12 +17,9 @@ class Dependency end def ==(other) - name == other.name - end - - def eql?(other) instance_of?(other.class) && name == other.name end + alias_method :eql?, :== def hash name.hash |
