Skip to content

Commit

Permalink
Cleanup Array#empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 26, 2013
1 parent 47e356e commit a689a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def each_index(&block)
end

def empty?
`!#{self}.length`
`self.length === 0`
end

def fetch(index, defaults = undefined, &block)
Expand Down

0 comments on commit a689a4c

Please sign in to comment.