Skip to content

Commit 5e92546

Browse files
committed
fix jshint errors for lib/connection-parameters.js
1 parent da1e62e commit 5e92546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/connection-parameters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var parse = function(str) {
1919
var result = url.parse(str);
2020
var config = {};
2121
config.host = result.hostname;
22-
config.database = result.pathname ? result.pathname.slice(1) : null
22+
config.database = result.pathname ? result.pathname.slice(1) : null;
2323
var auth = (result.auth || ':').split(':');
2424
config.user = auth[0];
2525
config.password = auth[1];
@@ -31,7 +31,7 @@ var ConnectionParameters = function(config) {
3131
config = typeof config == 'string' ? parse(config) : (config || {});
3232
this.user = val('user', config);
3333
this.database = val('database', config);
34-
this.port = parseInt(val('port', config));
34+
this.port = parseInt(val('port', config), 10);
3535
this.host = val('host', config);
3636
this.password = val('password', config);
3737
this.binary = val('binary', config);

0 commit comments

Comments
 (0)