mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Removed unneeded block check in Array#uniq
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user