style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@ -47,9 +47,7 @@ public class NumberOfDigits {
* @return number of digits of given number
*/
private static int numberOfDigitsFast(int number) {
return number == 0
? 1
: (int) Math.floor(Math.log10(Math.abs(number)) + 1);
return number == 0 ? 1 : (int) Math.floor(Math.log10(Math.abs(number)) + 1);
}
/**