diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-22 16:55:18 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-22 16:55:18 +0900 |
| commit | a70104798ee72c08ee64d28b0d5dd6e93e7b76c6 (patch) | |
| tree | 1b3e96a737acdafd83fbadb801a80b2814c134a4 /mrbgems/mruby-range-ext | |
| parent | bbaf3c242d755cc34ac98725d4f810aa8d421c49 (diff) | |
| download | mruby-a70104798ee72c08ee64d28b0d5dd6e93e7b76c6.tar.gz mruby-a70104798ee72c08ee64d28b0d5dd6e93e7b76c6.zip | |
remove unnecessary ".!"; ref #3261
Diffstat (limited to 'mrbgems/mruby-range-ext')
| -rw-r--r-- | mrbgems/mruby-range-ext/mrblib/range.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-range-ext/mrblib/range.rb b/mrbgems/mruby-range-ext/mrblib/range.rb index 3b9c3874a..e5d1fb079 100644 --- a/mrbgems/mruby-range-ext/mrblib/range.rb +++ b/mrbgems/mruby-range-ext/mrblib/range.rb @@ -15,7 +15,7 @@ class Range 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) |
