From 4c4193e905ed87faf58d9f41f1724f5353943e93 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 14 Aug 2014 00:03:34 -0500 Subject: [PATCH] Use the Enumerable implementation of include? --- Library/Homebrew/dependencies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb index 96a4106b58..db28c7af3c 100644 --- a/Library/Homebrew/dependencies.rb +++ b/Library/Homebrew/dependencies.rb @@ -10,7 +10,7 @@ class Dependencies end def <<(o) - @deps << o unless @deps.include? o + @deps << o unless include?(o) self end