feat(GODT-2714): Apply PR comments.

This commit is contained in:
Romain LE JEUNE
2023-06-29 09:54:42 +02:00
parent 720f662afe
commit c43739a7ef
3 changed files with 10 additions and 5 deletions

View File

@ -297,12 +297,12 @@ func (bridge *Bridge) SetColorScheme(colorScheme string) error {
// Note: it does not clear the keychain. The only entry in the keychain is the vault password,
// which we need at next startup to decrypt the vault.
func (bridge *Bridge) FactoryReset(ctx context.Context) {
telemetry := bridge.IsTelemetryAvailable()
useTelemetry := bridge.IsTelemetryAvailable()
// Delete all the users.
safe.Lock(func() {
for _, user := range bridge.users {
bridge.logoutUser(ctx, user, true, true, telemetry)
bridge.logoutUser(ctx, user, true, true, useTelemetry)
}
}, bridge.usersLock)