[chore] fix lint errors

This commit is contained in:
MathieuG-P
2023-07-01 03:01:38 +02:00
parent 7addb57613
commit d62727c3f9
55 changed files with 176 additions and 181 deletions
+1 -3
View File
@@ -2,9 +2,7 @@ import archiver from "archiver";
import { createWriteStream } from "fs";
import { Observable } from "rxjs";
import recursive from "recursive-readdir";
import { lstatSync } from "fs";
import * as _path from "path";
import { ArchiveProgress } from "shared/models/archive.interface";
import { Progression } from "main/helpers/fs.helpers";
export class Archive{
@@ -45,7 +43,7 @@ export class Archive{
public addFile(path: string, destPath?: string): void{
this.files.push(path);
destPath = destPath ||= _path.basename(path);
destPath ||= _path.basename(path);
this.archive.file(path, {name: destPath});
}