From 3e3e3a615448cf809f3000f05162fb05f1bda51c Mon Sep 17 00:00:00 2001 From: "@jotadeveloper" <@jotadeveloper> Date: Fri, 29 Mar 2019 21:17:40 +0100 Subject: [PATCH] fix: remove uncessary async --- plugins/local-storage/src/local-database.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/local-storage/src/local-database.ts b/plugins/local-storage/src/local-database.ts index 0dc90676..75d8d008 100644 --- a/plugins/local-storage/src/local-database.ts +++ b/plugins/local-storage/src/local-database.ts @@ -70,8 +70,7 @@ class LocalDatabase implements IPluginStorage<{}> { this.logger.trace(`local-storage: [search] base: ${base} keys ${storageKeys}`); async.eachSeries( - storageKeys, - async function(storage, cb) { + storageKeys, function(storage, cb) { const position = storageKeys.indexOf(storage); const base2 = Path.join(position !== 0 ? storageKeys[0] : ''); const storagePath: string = Path.resolve(base, base2, storage); @@ -88,7 +87,7 @@ class LocalDatabase implements IPluginStorage<{}> { if (storageKeys.includes(file )) { return cb(); } - + if (file.match(/^@/)) { // scoped const fileLocation = Path.resolve(base, storage, file);