Skip to content

Commit

Permalink
change Promise.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
cj-dimaano committed May 10, 2017
1 parent 2f5861a commit c2a5e50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/services/plugin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,8 @@ export class PluginService {
// Recursively progress through directories until we get interpreter info.
const dest = path.join(PLUGIN_DIRECTORY, path.basename(dir));
if (dest === dir) {
return new Promise<void>((resolve, reject) => resolve());
}
else {
return Promise.resolve();
} else {
LOG.log(`Importing plugins from ${dir} to ${dest}.`);
await copy(dir, dest);
}
Expand Down

0 comments on commit c2a5e50

Please sign in to comment.