Skip to content

Commit

Permalink
getPackageInfo doesn't need to be promisified
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed May 8, 2018
1 parent 1faac97 commit b7b06d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infer.js
Expand Up @@ -115,7 +115,7 @@ module.exports = function getMetadataFromPackageJSON (platforms, opts, dir) {
if (props.length === 0) return Promise.resolve()

// Search package.json files to infer name and version from
return pify(getPackageInfo)(props, dir)
return getPackageInfo(props, dir)
.then(result => handleMetadata(opts, result))
.catch(err => {
if (err.missingProps) {
Expand Down

0 comments on commit b7b06d9

Please sign in to comment.