Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin less reliance on async package: Await as we go #134

Merged
merged 6 commits into from
Aug 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove async from dedupe.js
  • Loading branch information
confused-Techie committed Jul 25, 2024
commit a642f0b3d8eed0ab98defc18ffb6e1dae0ec8c75
11 changes: 4 additions & 7 deletions src/dedupe.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

const path = require('path');

const async = require('async');
const _ = require('underscore-plus');
const yargs = require('yargs');

Expand Down Expand Up @@ -76,13 +75,11 @@ This command is experimental.\

this.createAtomDirectories();

const commands = [];
commands.push(async () => await this.loadInstalledAtomMetadata());
commands.push(async () => await this.dedupeModules(options));
try {
await async.waterfall(commands);
} catch (error) {
return error; //errors as return values atm
await this.loadInstalledAtomMetadata();
await this.dedupeModules(options);
} catch(err) {
return err;
}
}
}