Removed unneeded block check in Array#uniq

This commit is contained in:
Christopher Aue
2017-08-26 15:20:57 +02:00
parent f3fb43c729
commit 6c9013e22b
+1 -5
View File
@@ -81,11 +81,7 @@ class Array
#
def uniq(&block)
ary = self.dup
if block
ary.uniq!(&block)
else
ary.uniq!
end
ary.uniq!(&block)
ary
end