summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-06-21 11:13:33 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-06-21 11:13:33 +0900
commit057be5ffb55dbcdb1a982da4762fc3fc8c568705 (patch)
treeb096b9f35ccb1973022098feb55378a08c9a25dc /mrblib
parentd0a7e01d9cc97651ec80012fefa7cf1e378adbce (diff)
downloadmruby-057be5ffb55dbcdb1a982da4762fc3fc8c568705.tar.gz
mruby-057be5ffb55dbcdb1a982da4762fc3fc8c568705.zip
use `unless` instead of `if not`.
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/string.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/string.rb b/mrblib/string.rb
index f91b5a23c..4c6114ecb 100644
--- a/mrblib/string.rb
+++ b/mrblib/string.rb
@@ -133,7 +133,7 @@ class String
if args.length == 2 && block
block = nil
end
- if !block
+ unless block
replace = replace.to_str
end
result = []