1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-26 13:34:49 +02:00

Sugar for the Fingerprint

This commit is contained in:
Paul Schaub 2023-07-05 17:52:16 +02:00
parent 48379a1c01
commit 7fa8489d43
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -13,14 +13,7 @@ class Fingerprint(fingerprint: String) {
}
override fun equals(other: Any?): Boolean {
if (other == null) {
return false
}
return if (other is Fingerprint) {
toString() == other.toString()
} else {
false
}
return other?.toString() == toString()
}
override fun hashCode(): Int {