Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit eac2daf

Browse files
Update src/handlers/config.ts
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 0a2174b commit eac2daf

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

src/handlers/config.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,15 @@ class apiHandler {
109109
try {
110110
const backupFiles = readdirSync(backupDir);
111111

112-
const filteredFiles = backupFiles.filter((file: string) => {
113-
return !(
114-
file.startsWith(".") ||
115-
file.endsWith(".db") ||
116-
file.endsWith(".db-shm") ||
117-
file.endsWith(".db-wal")
118-
);
119-
});
120-
121-
return filteredFiles;
112+
return backupFiles.filter((file: string) => {
113+
return !(
114+
file.startsWith(".") ||
115+
file.endsWith(".db") ||
116+
file.endsWith(".db-shm") ||
117+
file.endsWith(".db-wal")
118+
);
119+
});
120+
122121
} catch (error) {
123122
const errMsg = error instanceof Error ? error.message : String(error);
124123
throw new Error(errMsg);

0 commit comments

Comments
 (0)