mirror of
https://github.com/rschamp/gh-pages.git
synced 2026-03-29 00:33:44 +08:00
use simple truthy check
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user