Skip to content

Commit

Permalink
Add guard on osSupportsBiometric
Browse files Browse the repository at this point in the history
  • Loading branch information
djsmith85 committed Jan 15, 2024
1 parent d6ca296 commit e879a35
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export class BiometricsService implements BiometricsServiceAbstraction {
}

async osSupportsBiometric() {
if (!this.platformSpecificService) {
return false;

Check warning on line 58 in apps/desktop/src/platform/main/biometric/biometrics.service.ts

View check run for this annotation

Codecov / codecov/patch

apps/desktop/src/platform/main/biometric/biometrics.service.ts#L58

Added line #L58 was not covered by tests
}
return await this.platformSpecificService.osSupportsBiometric();
}

Expand Down

0 comments on commit e879a35

Please sign in to comment.