1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 12:27:58 +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( primaryKey.userId(
userId, userId,
subpacketsCallback = subpacketsCallback =
preferencesCallback.then(adjustPrimaryUserId()).then(subpacketsCallback)) preferencesCallback.then(markFirstPrimaryUserId()).then(subpacketsCallback))
} }
private fun adjustPrimaryUserId() = private fun markFirstPrimaryUserId() =
SelfSignatureSubpackets.applyHashed { SelfSignatureSubpackets.applyHashed {
if (primaryKeyHasPrimaryUserId()) { if (primaryKeyHasPrimaryUserId()) {
setPrimaryUserId(null) setPrimaryUserId(null)