mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Remove variable and use inline check
This commit is contained in:
@@ -57,13 +57,6 @@ class LocalAuthenticationService: NSObject {
|
||||
return (systemUptime - appLastActiveTime) > pinCodePreferences.graceTimeInSeconds
|
||||
}
|
||||
|
||||
var shouldShowInactiveScreen: Bool {
|
||||
guard isProtectionSet else {
|
||||
return false
|
||||
}
|
||||
return !BiometricsAuthenticationPresenter.isPresenting
|
||||
}
|
||||
|
||||
var isProtectionSet: Bool {
|
||||
return pinCodePreferences.isPinSet || pinCodePreferences.isBiometricsSet
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user