Skip to content

Commit

Permalink
fix: refactor to return hexpath in object from npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Dec 11, 2019
1 parent 39459bb commit cfd94ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,17 @@ class Downloader {

const manifest = this.get_manifest_from_npm(firmware, options);

let hex_path;
let hexpath;
try {
hex_path = path.join(
hexpath = path.join(
this.get_npm_basepath(firmware),
this.get_path_from_manifest(manifest, firmware, options)
);
} catch (e) {
reject(new Error('Cannot get path to hex file', e));
}

resolve(hex_path);
resolve({hexpath});
});
}

Expand Down

0 comments on commit cfd94ea

Please sign in to comment.