1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-07-01 07:46:43 +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 { 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 {