Skip to content

Commit

Permalink
bitcoind: Use toLowerCase() instead of lowercase()
Browse files Browse the repository at this point in the history
Bisq 1's Kotlin version is older than 1.5.
  • Loading branch information
alvasw committed Oct 9, 2024
1 parent 8299924 commit c3dd750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ enum class OS {
}

fun getOS(): OS {
val osName = System.getProperty("os.name").lowercase(Locale.US)
val osName = System.getProperty("os.name").toLowerCase(Locale.US)
if (isLinux(osName)) {
return OS.LINUX
} else if (isMacOs(osName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package bisq.gradle.tasks
object PgpFingerprint {
fun normalize(fingerprint: String): String =
fingerprint.filterNot { it.isWhitespace() } // Remove all spaces
.lowercase()
.toLowerCase()
}

0 comments on commit c3dd750

Please sign in to comment.