Skip to content

Commit

Permalink
fix: remove uncessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Aug 13, 2019
1 parent 664f288 commit 3e3e3a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/local-storage/src/local-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 3e3e3a6

Please sign in to comment.