From f710f03380a89c5320a7467d016db355a2c29593 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Mon, 1 Jun 2026 03:37:55 +0100 Subject: [PATCH] Address following rules - @typescript-eslint/no-redundant-type-constituents - @typescript-eslint/no-unnecessary-type-assertion --- src/common/utils.ts | 2 +- src/features/HiddenFileSync/CmdHiddenFileSync.ts | 2 +- src/features/LocalDatabaseMainte/CmdLocalDatabaseMainte.ts | 6 +++--- src/lib | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/utils.ts b/src/common/utils.ts index 15aa19d..829d608 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -128,7 +128,7 @@ export const _requestToCouchDBFetch = async ( username: string, password: string, path?: string, - body?: string | any, + body?: any, method?: string ) => { const utf8str = String.fromCharCode.apply(null, [...writeString(`${username}:${password}`)]); diff --git a/src/features/HiddenFileSync/CmdHiddenFileSync.ts b/src/features/HiddenFileSync/CmdHiddenFileSync.ts index ead080a..c670c34 100644 --- a/src/features/HiddenFileSync/CmdHiddenFileSync.ts +++ b/src/features/HiddenFileSync/CmdHiddenFileSync.ts @@ -1500,7 +1500,7 @@ Offline Changed files: ${files.length}`; } async storeInternalFileToDatabase(file: InternalFileInfo | UXFileInfo, forceWrite = false) { - const storeFilePath = stripAllPrefixes(file.path as FilePath); + const storeFilePath = stripAllPrefixes(file.path); const storageFilePath = file.path; if (await this.services.vault.isIgnoredByIgnoreFile(storageFilePath)) { return undefined; diff --git a/src/features/LocalDatabaseMainte/CmdLocalDatabaseMainte.ts b/src/features/LocalDatabaseMainte/CmdLocalDatabaseMainte.ts index fb8651c..df5f921 100644 --- a/src/features/LocalDatabaseMainte/CmdLocalDatabaseMainte.ts +++ b/src/features/LocalDatabaseMainte/CmdLocalDatabaseMainte.ts @@ -391,7 +391,7 @@ Note: **Make sure to synchronise all devices before deletion.** .map((revInfo) => db.get(doc._id, { rev: revInfo.rev })) ).then((docs) => docs.filter((doc) => doc)); for (const oldDoc of oldDocs) { - await processDoc(oldDoc as EntryDoc, false); + await processDoc(oldDoc, false); } } } catch (ex) { @@ -560,7 +560,7 @@ Success: ${successCount}, Errored: ${errored}`; }); docMap.set(id, set); } else if (doc.type === EntryTypes.CHUNK) { - const id = doc._id as DocumentID; + const id = doc._id; if (chunkMap.has(id)) { return; } @@ -929,7 +929,7 @@ This may indicate that some devices have not completed synchronisation, which co usedChunks.add(chunkId); } } else if (doc.type === EntryTypes.CHUNK) { - allChunks.set(doc._id as DocumentID, doc._rev); + allChunks.set(doc._id, doc._rev); } } this._notice( diff --git a/src/lib b/src/lib index faf5c55..744d9bf 160000 --- a/src/lib +++ b/src/lib @@ -1 +1 @@ -Subproject commit faf5c55fd729d1efc708341d1dd128f0bbd70b28 +Subproject commit 744d9bf5dda0fdab52d5dd89769602a7f4c78571