1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 20:37:59 +01:00

Sugar for the Fingerprint

This commit is contained in:
Paul Schaub 2023-07-05 17:52:16 +02:00
parent 4488f37394
commit 13dc66f8e3
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

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