Merge pull request #6 from jmarca/bug/return_something

return null;
This commit is contained in:
Max 2013-10-16 18:17:13 -07:00
commit 6442febbaf
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}); });
}; };