From 3b8004865da6086db2b4073974ee4be8236ce41b Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 4 Oct 2019 18:07:06 +0200 Subject: [PATCH] Remove redundant condition in `String::_humanize_digits()` --- core/ustring.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/ustring.cpp b/core/ustring.cpp index adae3ca1a39..f029ae42003 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -3288,9 +3288,7 @@ String String::simplify_path() const { static int _humanize_digits(int p_num) { - if (p_num < 10) - return 2; - else if (p_num < 100) + if (p_num < 100) return 2; else if (p_num < 1024) return 1;