From cb708ee78be037ab9444ebd4034cfe261d93218e Mon Sep 17 00:00:00 2001 From: Vlad Zarakovsky Date: Tue, 29 Nov 2022 14:01:18 +0300 Subject: [PATCH] Replace if !blank? with unless blank? --- src/string.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cr b/src/string.cr index dd3918252002..8878de06ac19 100644 --- a/src/string.cr +++ b/src/string.cr @@ -2958,7 +2958,7 @@ class String # # See also: `Nil#presence`. def presence : self? - self if !blank? + self unless blank? end # Returns `true` if this string is equal to `*other*.