1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-10-31 00:07:48 +02:00

Chore: Refactoring: Prefer empty array to KeychainServiceDriverDummy (#11216)

This commit is contained in:
Henry Heino
2024-10-26 13:02:34 -07:00
committed by GitHub
parent c6d319e333
commit 4e7d74e49a
5 changed files with 3 additions and 30 deletions

View File

@@ -21,7 +21,6 @@ import ShareExtension from './utils/ShareExtension';
import handleShared from './utils/shareHandler';
import uuid from '@joplin/lib/uuid';
import { loadKeychainServiceAndSettings } from '@joplin/lib/services/SettingUtils';
import KeychainServiceDriverMobile from '@joplin/lib/services/keychain/KeychainServiceDriver.mobile';
import { _, setLocale } from '@joplin/lib/locale';
import SyncTargetJoplinServer from '@joplin/lib/SyncTargetJoplinServer';
import SyncTargetJoplinCloud from '@joplin/lib/SyncTargetJoplinCloud';
@@ -596,7 +595,7 @@ async function initialize(dispatch: Dispatch) {
reg.logger().info('Database is ready.');
reg.logger().info('Loading settings...');
await loadKeychainServiceAndSettings([KeychainServiceDriverMobile]);
await loadKeychainServiceAndSettings([]);
await migrateMasterPassword();
if (!Setting.value('clientId')) Setting.setValue('clientId', uuid.create());