diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-10-04 18:07:06 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-10-04 18:07:06 +0200 |
commit | 3b8004865da6086db2b4073974ee4be8236ce41b (patch) | |
tree | d9f570d44d6d55492d4ab286e6abd977915a4d97 /core | |
parent | 7e9c1041ac1d30c7620713635a76ba4caf29d673 (diff) |
Remove redundant condition in `String::_humanize_digits()`
Diffstat (limited to 'core')
-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; |