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

Fix more spotless formatting errors

This commit is contained in:
Paul Schaub 2025-02-28 10:46:12 +01:00
parent 39bd9d6acb
commit a715c8cf93
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -15,13 +15,9 @@ import org.bouncycastle.openpgp.api.OpenPGPKey.OpenPGPPrivateKey
* as the component keys fingerprint.
*/
class SubkeyIdentifier(
/**
* Fingerprint of the certificate.
*/
/** Fingerprint of the certificate. */
val certificateFingerprint: OpenPgpFingerprint,
/**
* Fingerprint of the target component key.
*/
/** Fingerprint of the target component key. */
val componentKeyFingerprint: OpenPgpFingerprint
) {
@ -134,8 +130,8 @@ class SubkeyIdentifier(
val isPrimaryKey = certificateIdentifier.matches(componentKeyIdentifier)
/**
* Return true, if the provided [fingerprint] matches either the [certificateFingerprint]
* or [componentKeyFingerprint].
* Return true, if the provided [fingerprint] matches either the [certificateFingerprint] or
* [componentKeyFingerprint].
*/
fun matches(fingerprint: OpenPgpFingerprint) =
certificateFingerprint == fingerprint || componentKeyFingerprint == fingerprint