Merge pull request #4 from jmarca/bug/duplicate_genDB
genDB was repeated. deleted the second one
This commit is contained in:
commit
7170cc0b43
|
@ -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) {
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue