Skip to content

Commit

Permalink
remove unnecessary ".!"; ref #3261
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Nov 22, 2016
1 parent bbaf3c2 commit a701047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-range-ext/mrblib/range.rb
Expand Up @@ -15,7 +15,7 @@ def first(*args)

raise ArgumentError, "wrong number of arguments (given #{args.length}, expected 1)" unless args.length == 1
nv = args[0]
raise TypeError, "no implicit conversion from nil to integer" unless nv.nil?.!
raise TypeError, "no implicit conversion from nil to integer" if nv.nil?
raise TypeError, "no implicit conversion of #{nv.class} into Integer" unless nv.respond_to?(:to_int)
n = nv.to_int
raise TypeError, "no implicit conversion of #{nv.class} into Integer" unless n.kind_of?(Integer)
Expand Down

0 comments on commit a701047

Please sign in to comment.