You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Tools: Apply eslint rule @typescript-eslint/no-inferrable-types with ignoreArguments=false
This commit is contained in:
@@ -296,7 +296,7 @@ export function getEncryptionEnabled() {
|
||||
return localSyncInfo().e2ee;
|
||||
}
|
||||
|
||||
export function setEncryptionEnabled(v: boolean, activeMasterKeyId: string = '') {
|
||||
export function setEncryptionEnabled(v: boolean, activeMasterKeyId = '') {
|
||||
const s = localSyncInfo();
|
||||
s.e2ee = v;
|
||||
if (activeMasterKeyId) s.activeMasterKeyId = activeMasterKeyId;
|
||||
@@ -319,7 +319,7 @@ export function getActiveMasterKey(s: SyncInfo = null): MasterKeyEntity | null {
|
||||
return s.masterKeys.find(mk => mk.id === s.activeMasterKeyId);
|
||||
}
|
||||
|
||||
export function setMasterKeyEnabled(mkId: string, enabled: boolean = true) {
|
||||
export function setMasterKeyEnabled(mkId: string, enabled = true) {
|
||||
const s = localSyncInfo();
|
||||
const idx = s.masterKeys.findIndex(mk => mk.id === mkId);
|
||||
if (idx < 0) throw new Error(`No such master key: ${mkId}`);
|
||||
|
||||
Reference in New Issue
Block a user