mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 17:51:29 +03:00
refactor - remove commented code
This commit is contained in:
parent
c0f927a98e
commit
fdcf841bce
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user