Skip to content

Commit cfe9a4e

Browse files
committed
Move constants to the top of the file on PercentFormatter.kt
1 parent 6d6bc44 commit cfe9a4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPress/src/main/java/org/wordpress/android/util/text/PercentFormatter.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import org.wordpress.android.util.LocaleManagerWrapper
55
import java.math.RoundingMode
66
import javax.inject.Inject
77

8+
private const val MAXIMUM_FRACTION_DIGITS = 0
9+
private const val FORMAT_DIVISOR = 100
10+
811
/**
912
* Used to format a string with a percent sign (%) based on the locale.
1013
* @param localeManagerWrapper provides the Locale used to return the localized formatted string
@@ -47,6 +50,3 @@ class PercentFormatter @Inject constructor(
4750
rounding
4851
)
4952
}
50-
51-
private const val MAXIMUM_FRACTION_DIGITS = 0
52-
private const val FORMAT_DIVISOR = 100

0 commit comments

Comments
 (0)