mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2025-03-14 06:29:51 -04:00
use simple truthy check
This commit is contained in:
parent
663f5c7cdf
commit
9a9659027a
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue