refactor - remove commented code

This commit is contained in:
Adam Velebil 2023-08-03 15:35:20 +02:00
parent c0f927a98e
commit fdcf841bce
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -397,10 +397,7 @@ class OathManager(
addToAny = true
return useOathSessionNfc(OathActionDescription.AddMultipleAccounts) { session ->
var successCount = 0
// try {
for (index in uris.indices) {
val credentialData: CredentialData =
@ -411,7 +408,6 @@ class OathManager(
continue
}
val credential = session.putCredential(credentialData, requireTouch[index])
val code =
if (credentialData.oathType == YubiKitOathType.TOTP && !requireTouch[index]) {
@ -427,11 +423,6 @@ class OathManager(
logger.trace("Added cred {}", credential)
successCount++
}
// } catch (cancelled: CancellationException) {
//
// } catch (e: Throwable) {
// logger.error("Caught exception when adding multiple credentials: ", e)
// }
jsonSerializer.encodeToString(mapOf("succeeded" to successCount))
}
}