1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-09 18:29:39 +02:00

Fix spotless error

This commit is contained in:
Paul Schaub 2025-02-28 10:45:34 +01:00
parent 714b5bd9c9
commit 0109624020
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -68,8 +68,8 @@ enum class HashAlgorithm(val algorithmId: Int, val algorithmName: String) {
return name.uppercase().let { algoName ->
// find value where it.algorithmName == ALGO-NAME
values().firstOrNull { it.algorithmName == algoName }
// else, find value where it.algorithmName == ALGONAME
?: values().firstOrNull { it.algorithmName == algoName.replace("-", "") }
// else, find value where it.algorithmName == ALGONAME
?: values().firstOrNull { it.algorithmName == algoName.replace("-", "") }
}
}
}