Skip to content

Commit

Permalink
Fixed an issue where the first parameter in a callback would not be the
Browse files Browse the repository at this point in the history
expected error object.
  • Loading branch information
Eagerod committed Aug 13, 2016
1 parent e7b5449 commit fb83773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prompt.js
Expand Up @@ -689,7 +689,7 @@ prompt.addProperties = function (obj, properties, callback) {
});

if (properties.length === 0) {
return callback(obj);
return callback(null, obj);
}

prompt.get(properties, function (err, results) {
Expand Down

0 comments on commit fb83773

Please sign in to comment.