use simple truthy check

This commit is contained in:
Anton Wilhelm 2015-12-07 23:25:20 +01:00
parent 663f5c7cdf
commit 9a9659027a

View file

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