Browse Source

Remove redundant condition in `String::_humanize_digits()`

Hugo Locurcio 5 years ago
parent
commit
3b8004865d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      core/ustring.cpp

+ 1 - 3
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;