From 179a8766152ce9801ec9734b89083f0b35b40af8 Mon Sep 17 00:00:00 2001 From: "James E. Marca" Date: Wed, 16 Oct 2013 12:32:43 -0700 Subject: [PATCH] genDB was repeated. deleted the second one --- tasks/couchapp.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tasks/couchapp.js b/tasks/couchapp.js index 1c39b97..80bc15c 100755 --- a/tasks/couchapp.js +++ b/tasks/couchapp.js @@ -22,16 +22,6 @@ var genDB = function(db) { }; }; -var genDB = function(db) { - var parts, dbname, auth; - parts = urls.parse(db); - dbname = parts.pathname.replace(/^\//, ''); - auth = parts.auth ? (parts.auth + '@') : ''; - return { - name: dbname, - url: parts.protocol + '//' + auth + parts.host - }; -}; module.exports = function(grunt) { @@ -72,7 +62,7 @@ module.exports = function(grunt) { } } return done(err, null); - }); + }); } else { grunt.log.writeln("No database specified... skipping."); return done(null, null); @@ -106,7 +96,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);