diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-04 19:31:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 19:31:32 +0200 |
commit | 99df569b40646979a917637c1efbf1cd3e8c7dcd (patch) | |
tree | d9f570d44d6d55492d4ab286e6abd977915a4d97 | |
parent | 7e9c1041ac1d30c7620713635a76ba4caf29d673 (diff) | |
parent | 3b8004865da6086db2b4073974ee4be8236ce41b (diff) |
Merge pull request #32552 from Calinou/humanize-digits-remove-redundant-if
Remove redundant condition in `String::_humanize_digits()`
-rw-r--r-- | core/ustring.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index adae3ca1a3..f029ae4200 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; |