summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-range-ext
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-11-22 16:55:18 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-22 16:55:18 +0900
commita70104798ee72c08ee64d28b0d5dd6e93e7b76c6 (patch)
tree1b3e96a737acdafd83fbadb801a80b2814c134a4 /mrbgems/mruby-range-ext
parentbbaf3c242d755cc34ac98725d4f810aa8d421c49 (diff)
downloadmruby-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.rb2
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)