diff --git a/helpers/LazyVal.ts b/helpers/LazyVal.ts index a06ba8b1a0cf8cb20ff87f7862a2e4c5d5f1b854..90c721795c713d03c5beeac077949c570eab41a7 100644 --- a/helpers/LazyVal.ts +++ b/helpers/LazyVal.ts @@ -9,7 +9,7 @@ class LazyVal<T> { get value(): Promise<T> { return new Promise<T>(resolve => { if ( this.val === undefined ) { - Promise.resolve(this.valLoader()).then((value: T) => { + void Promise.resolve(this.valLoader()).then((value: T) => { this.val = value; resolve(value); }); diff --git a/helpers/recursiveFilesStats/RecursiveFilesStats.ts b/helpers/recursiveFilesStats/RecursiveFilesStats.ts index a71bffd40bdc53efee7b4a153f7e42a1cf8f9c02..e931738e25cda0be599447d72f12d466e83425fd 100644 --- a/helpers/recursiveFilesStats/RecursiveFilesStats.ts +++ b/helpers/recursiveFilesStats/RecursiveFilesStats.ts @@ -75,9 +75,9 @@ class RecursiveFilesStats { if ( callback ) { fileDir.forEach(item => { - this.getStat(item.path, absoluteBasePath, options).then(stat => { + void this.getStat(item.path, absoluteBasePath, options).then(stat => { if ( stat.isDirectory!() ) { - this.getFiles(absoluteBasePath, item.path, options, [], callback).then(); + void this.getFiles(absoluteBasePath, item.path, options, [], callback).then(); } callback(item.path, stat); });