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

Rename function

This commit is contained in:
Paul Schaub 2024-02-03 13:38:29 +01:00
parent 9785582bd2
commit 251f30fae8
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -150,10 +150,10 @@ open class GenerateOpenPgpKey(
primaryKey.userId(
userId,
subpacketsCallback =
preferencesCallback.then(adjustPrimaryUserId()).then(subpacketsCallback))
preferencesCallback.then(markFirstPrimaryUserId()).then(subpacketsCallback))
}
private fun adjustPrimaryUserId() =
private fun markFirstPrimaryUserId() =
SelfSignatureSubpackets.applyHashed {
if (primaryKeyHasPrimaryUserId()) {
setPrimaryUserId(null)