Merge pull request #32552 from Calinou/humanize-digits-remove-redundant-if

Remove redundant condition in `String::_humanize_digits()`
This commit is contained in:
Rémi Verschelde 2019-10-04 19:31:32 +02:00 committed by GitHub
commit 99df569b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -3288,9 +3288,7 @@ String String::simplify_path() const {
static int _humanize_digits(int p_num) { static int _humanize_digits(int p_num) {
if (p_num < 10) if (p_num < 100)
return 2;
else if (p_num < 100)
return 2; return 2;
else if (p_num < 1024) else if (p_num < 1024)
return 1; return 1;