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 0109624020
commit 07d2311b0e
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. * as the component keys fingerprint.
*/ */
class SubkeyIdentifier( class SubkeyIdentifier(
/** /** Fingerprint of the certificate. */
* Fingerprint of the certificate.
*/
val certificateFingerprint: OpenPgpFingerprint, val certificateFingerprint: OpenPgpFingerprint,
/** /** Fingerprint of the target component key. */
* Fingerprint of the target component key.
*/
val componentKeyFingerprint: OpenPgpFingerprint val componentKeyFingerprint: OpenPgpFingerprint
) { ) {
@ -134,8 +130,8 @@ class SubkeyIdentifier(
val isPrimaryKey = certificateIdentifier.matches(componentKeyIdentifier) val isPrimaryKey = certificateIdentifier.matches(componentKeyIdentifier)
/** /**
* Return true, if the provided [fingerprint] matches either the [certificateFingerprint] * Return true, if the provided [fingerprint] matches either the [certificateFingerprint] or
* or [componentKeyFingerprint]. * [componentKeyFingerprint].
*/ */
fun matches(fingerprint: OpenPgpFingerprint) = fun matches(fingerprint: OpenPgpFingerprint) =
certificateFingerprint == fingerprint || componentKeyFingerprint == fingerprint certificateFingerprint == fingerprint || componentKeyFingerprint == fingerprint