From ec656e9c657acf19cf6f1357449656b829e4093d Mon Sep 17 00:00:00 2001 From: "James E. Marca" Date: Wed, 16 Oct 2013 13:17:10 -0700 Subject: [PATCH] declare 'db' var in both functions modified: tasks/couchapp.js added 'db' to the var list in grunt.registerMultiTask("rmcouchdb",...) and grunt.registerMultiTask("mkcouchdb",..). Also, Emacs got rid of some white space. Sorry about that bit of extraneous patching. --- tasks/couchapp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/couchapp.js b/tasks/couchapp.js index 1c39b97..29a43d0 100755 --- a/tasks/couchapp.js +++ b/tasks/couchapp.js @@ -51,7 +51,7 @@ module.exports = function(grunt) { }); grunt.registerMultiTask("rmcouchdb", "Delete a Couch Database", function() { - var done, parts, nano, dbname, _this; + var done, parts, nano, dbname, _this, db; _this = this; done = this.async(); db = genDB(this.data.db); @@ -72,7 +72,7 @@ module.exports = function(grunt) { } } return done(err, null); - }); + }); } else { grunt.log.writeln("No database specified... skipping."); return done(null, null); @@ -84,7 +84,7 @@ module.exports = function(grunt) { }); grunt.registerMultiTask("mkcouchdb", "Make a Couch Database", function() { - var done, parts, nano, dbname, _this; + var done, parts, nano, dbname, _this, db; _this = this; done = this.async(); @@ -106,7 +106,7 @@ module.exports = function(grunt) { grunt.log.writeln("Database " + db.name + " created."); return done(null, null); } - }); + }); } else { var err_msg = "No database specified to create!"; grunt.warn(err_msg);