Commit 6c9013e2 authored by Christopher Aue's avatar Christopher Aue

Removed unneeded block check in Array#uniq

parent f3fb43c7
...@@ -81,11 +81,7 @@ class Array ...@@ -81,11 +81,7 @@ class Array
# #
def uniq(&block) def uniq(&block)
ary = self.dup ary = self.dup
if block ary.uniq!(&block)
ary.uniq!(&block)
else
ary.uniq!
end
ary ary
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment