Skip to content

Commit

Permalink
fix: replace toUpperCase usages with uppercase in ColorUtils.kt (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnation87 authored Nov 1, 2022
1 parent ad473ff commit 60ec919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linta-android/src/main/java/com/swvl/lint/utils/ColorUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ object ColorUtils {
* @return the 8-digit hexadecimal format of a color of any length.
*/
fun get8DigitColorFormat(hexColor: String): String {
val newColor = hexColor.toUpperCase(Locale.US)
val newColor = hexColor.uppercase(Locale.US)

return when (newColor.length) {
9 -> {
Expand Down Expand Up @@ -83,7 +83,7 @@ object ColorUtils {
* format if an alpha component exists.
*/
fun getBestColorFormat(hexColor: String): String {
val newColor = hexColor.toUpperCase(Locale.US)
val newColor = hexColor.uppercase(Locale.US)

return when (newColor.length) {
9 -> {
Expand Down

0 comments on commit 60ec919

Please sign in to comment.