fix check for error argument

This commit is contained in:
Anton Wilhelm 2015-12-07 17:52:32 +01:00
parent b6eb464991
commit 663f5c7cdf

View file

@ -60,7 +60,7 @@ exports.publish = function publish(basePath, config, callback) {
var done = function(arguments) {
try {
(callback || function(err) {
if (!err) {
if (!!err) {
console.log(err)
}
})(arguments);