mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 22:44:11 +00:00
Fixed lint
This commit is contained in:
@@ -104,7 +104,7 @@ export class Fido2PlaceholderComponent implements OnInit, OnDestroy {
|
||||
// But if this route is somehow opened outside of session we want to make sure we clean up?
|
||||
await this.router.navigate(["/"]);
|
||||
await this.desktopSettingsService.setModalMode(false);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// TODO: Handle error appropriately
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ import { LoginUriView } from "@bitwarden/common/vault/models/view/login-uri.view
|
||||
import { LoginView } from "@bitwarden/common/vault/models/view/login.view";
|
||||
import { SecureNoteView } from "@bitwarden/common/vault/models/view/secure-note.view";
|
||||
|
||||
import { DesktopSettingsService } from "src/platform/services/desktop-settings.service";
|
||||
import { DesktopSettingsService } from "../../platform/services/desktop-settings.service";
|
||||
|
||||
/**
|
||||
* This type is used to pass the window position from the native UI
|
||||
@@ -162,7 +162,7 @@ export class DesktopFido2UserInterfaceSession implements Fido2UserInterfaceSessi
|
||||
): Promise<{ cipherId: string; userVerified: boolean } | undefined> {
|
||||
try {
|
||||
return await lastValueFrom(this.chosenCipherSubject.pipe(timeout(timeoutMs)));
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// If we hit a timeout, return undefined instead of throwing
|
||||
this.logService.warning("Timeout: User did not select a cipher within the allowed time", {
|
||||
timeoutMs,
|
||||
|
||||
Reference in New Issue
Block a user