Skip to content

Commit

Permalink
removing non-necessary resolve with object
Browse files Browse the repository at this point in the history
  • Loading branch information
carvilsi committed Aug 30, 2023
1 parent f3b82a4 commit f51e866
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* SnOOpm
* snooping around code based on npm
*/

'use strict';
Expand Down Expand Up @@ -72,7 +71,7 @@ function getPackageData(packageName) {
exec(npmView.concat(packageName), (error, stdout, stderr) => {
if (!error && !stderr) {
writeDown(JSON.parse(stdout));
resolve(JSON.parse(stdout));
resolve();
} else if (error) {
logger.error('Error reading package: ' + packageName);
reject(error);
Expand Down

0 comments on commit f51e866

Please sign in to comment.