aboutsummaryrefslogtreecommitdiff
path: root/format/common/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-05-28 15:11:50 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-05-28 15:11:50 +0530
commitc980c898de8417e16942741d469ebef8532b822a (patch)
treecc0639b9bbe45bb7ff89fe3a956c0619f3d943b2 /format/common/src/main
parentde6cdfee0e37aab03bfb91e5e90c3ec4bd740fe3 (diff)
chore: reformat with trailing commas changes
Diffstat (limited to 'format/common/src/main')
-rw-r--r--format/common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt9
1 files changed, 2 insertions, 7 deletions
diff --git a/format/common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt b/format/common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt
index f4dcc2b7..cd152c9a 100644
--- a/format/common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt
+++ b/format/common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt
@@ -205,7 +205,7 @@ constructor(
millis / (THOUSAND_MILLIS * totpPeriod),
totpAlgorithm,
digits,
- issuer
+ issuer,
)
.mapBoth({ code -> Ok(Totp(code, remainingTime)) }, ::Err)
}
@@ -233,12 +233,7 @@ constructor(
"identity:",
)
@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
- public val PASSWORD_FIELDS: Array<String> =
- arrayOf(
- "password:",
- "secret:",
- "pass:",
- )
+ public val PASSWORD_FIELDS: Array<String> = arrayOf("password:", "secret:", "pass:")
private const val THOUSAND_MILLIS = 1000L
}
}