diff options
| author | Jack Nagel | 2014-11-12 17:33:07 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-11-12 17:33:58 -0600 |
| commit | 39cd94193457696c3aea9b4047f0258ff0ccea27 (patch) | |
| tree | c6771e22dadc248aeda6dd9dc7881eb85377246b /Library | |
| parent | 83bea4d30b76a0ba2e5079b72d0e0ef259cd5e81 (diff) | |
| download | homebrew-39cd94193457696c3aea9b4047f0258ff0ccea27.tar.bz2 | |
Don't allocate arrays in Requirement#hash
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirement.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb index f665bcc2c..517c9c92a 100644 --- a/Library/Homebrew/requirement.rb +++ b/Library/Homebrew/requirement.rb @@ -80,7 +80,7 @@ class Requirement end def hash - [name, *tags].hash + name.hash ^ tags.hash end def inspect |
