typo in callback
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/332dc21c Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/332dc21c Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/332dc21c Branch: refs/heads/master Commit: 332dc21cd93999ae76fc700b3dcd9e0ea7f7ab9e Parents: d108346 Author: Anis Kadri <[email protected]> Authored: Mon Jul 15 14:57:56 2013 -0700 Committer: Anis Kadri <[email protected]> Committed: Mon Jul 15 14:57:56 2013 -0700 ---------------------------------------------------------------------- src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/332dc21c/src/search.js ---------------------------------------------------------------------- diff --git a/src/search.js b/src/search.js index d70db06..31b1094 100644 --- a/src/search.js +++ b/src/search.js @@ -6,7 +6,7 @@ module.exports = function(search_opts, callback) { registry.search(search_opts, function(err, plugins) { if(callback) { if(err) return callback(err); - callback(plugins); + callback(null, plugins); } else { if(err) return console.log(err); for(var plugin in plugins) {
