return null;
at the end of the two main functions, add "return null;" because otherwise Emacs javascript parser whinges about not returning something from a routine. I guess it is in the standard and all that. apologies if this is noise, but that's why I'm making tiny commits...you can ignore them.
This commit is contained in:
parent
d0f8fb3d21
commit
008e268c06
|
@ -72,7 +72,7 @@ module.exports = function(grunt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return done(err, null);
|
return done(err, null);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
grunt.log.writeln("No database specified... skipping.");
|
grunt.log.writeln("No database specified... skipping.");
|
||||||
return done(null, null);
|
return done(null, null);
|
||||||
|
@ -81,6 +81,7 @@ module.exports = function(grunt) {
|
||||||
grunt.warn(e);
|
grunt.warn(e);
|
||||||
done(e, null);
|
done(e, null);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerMultiTask("mkcouchdb", "Make a Couch Database", function() {
|
grunt.registerMultiTask("mkcouchdb", "Make a Couch Database", function() {
|
||||||
|
@ -106,7 +107,7 @@ module.exports = function(grunt) {
|
||||||
grunt.log.writeln("Database " + db.name + " created.");
|
grunt.log.writeln("Database " + db.name + " created.");
|
||||||
return done(null, null);
|
return done(null, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
var err_msg = "No database specified to create!";
|
var err_msg = "No database specified to create!";
|
||||||
grunt.warn(err_msg);
|
grunt.warn(err_msg);
|
||||||
|
@ -116,6 +117,7 @@ module.exports = function(grunt) {
|
||||||
grunt.warn(e);
|
grunt.warn(e);
|
||||||
done(e, null);
|
done(e, null);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue