Adding eslint to github actions

This commit is contained in:
Jarosław Sadziński
2022-12-27 19:57:55 +01:00
parent fd02a00a0e
commit 7ff2ca954c
3 changed files with 7 additions and 3 deletions

View File

@@ -923,7 +923,7 @@ export async function backupSqliteDatabase(src: string, dest: string,
} finally {
if (testProgress) { testProgress({action: 'close', phase: 'before'}); }
try {
if (db) { await fromCallback(cb => db.close(cb)); }
if (db) { await fromCallback(cb => db!.close(cb)); }
} catch (err) {
_log.debug(null, `problem stopping copy of ${src} (${label}): ${err}`);
}