Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
style: Fixed failing rubocop lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Aug 8, 2016
1 parent 6709568 commit 317c4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/core_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def try(*a, &b)

def try!(*a, &b)
if a.empty? && block_given?
if b.arity == 0
if b.arity.zero?
instance_eval(&b)
else
yield self
Expand Down

0 comments on commit 317c4a5

Please sign in to comment.