Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Sep 12, 2024
1 parent ea0a7d2 commit ce95119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,17 +349,14 @@ class MainActivity : FlutterFragmentActivity() {
logger.debug("Exception while getting device info and scp keys: ", e)
contextManager?.onError(e)
if (device is NfcYubiKeyDevice) {
logger.debug("Setting NFC state to failure")
appMethodChannel.nfcStateChanged(NfcState.FAILURE)
}

// do not clear the device info when IOException's occur,
// do not clear deviceInfo on IOExceptions,
// this allows for retries of failed actions
if (e !is IOException) {
logger.debug("Resetting device info")
deviceManager.setDeviceInfo(null)
} else {
logger.debug("Keeping device info")
}

return
Expand Down
2 changes: 1 addition & 1 deletion lib/fido/views/delete_credential_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Yubico.
* Copyright (C) 2022-2024 Yubico.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit ce95119

Please sign in to comment.