Merge pull request #5 from jmarca/bug/declare_db

declare 'db' var in both functions
This commit is contained in:
Max 2013-10-16 18:18:42 -07:00
commit cfe5021c54
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,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);
@ -75,7 +75,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();