From 057be5ffb55dbcdb1a982da4762fc3fc8c568705 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 21 Jun 2017 11:13:33 +0900 Subject: use `unless` instead of `if not`. --- mrblib/string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mrblib/string.rb') 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 = [] -- cgit v1.2.3