Skip to content

Commit

Permalink
lint free
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Ozias committed May 21, 2016
1 parent 3273a82 commit e669d52
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ var keepalive = function(conn, query) {
if (err) return winston.error(err);
statement.execute(query, function(err, result) {
if (err) return winston.error(err);
winston.silly("%s - Keep-Alive", new Date().toUTCString())
winston.silly("%s - Keep-Alive", new Date().toUTCString());
});
});
}
};

var addConnection = function(url, props, ka, maxIdle, callback) {
dm.getConnection(url, props, function(err, conn) {
Expand Down Expand Up @@ -108,7 +108,7 @@ var connStatus = function(acc, pool) {
readonly: readonly,
valid: valid
});
return conns
return conns;
}, acc);
return acc;
};
Expand Down Expand Up @@ -186,7 +186,7 @@ Pool.prototype.reserve = function(callback) {
}
}

if (conn == null) {
if (conn === null) {
callback(new Error("No more pool connections available"));
} else {
callback(null, conn);
Expand Down
6 changes: 3 additions & 3 deletions lib/preparedstatement.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ PreparedStatement.prototype.setClob = function(index, val, length, callback) {
};

PreparedStatement.prototype.setDate = function(index, val, calendar, callback) {
if (calendar == null) {
if (calendar === null) {
this._ps.setDate(index, val, function(err) {
if (err) return callback(err);
callback(null);
Expand Down Expand Up @@ -175,7 +175,7 @@ PreparedStatement.prototype.setString = function(index, val, callback) {
};

PreparedStatement.prototype.setTime = function(index, val, calendar, callback) {
if (calendar == null) {
if (calendar === null) {
this._ps.setTime(index, val, function(err) {
if (err) return callback(err);
callback(null);
Expand All @@ -189,7 +189,7 @@ PreparedStatement.prototype.setTime = function(index, val, calendar, callback) {
};

PreparedStatement.prototype.setTimestamp = function(index, val, calendar, callback) {
if (calendar == null) {
if (calendar === null) {
this._ps.setTimestamp(index, val, function(err) {
if (err) return callback(err);
callback(null);
Expand Down
2 changes: 1 addition & 1 deletion test/test-derby.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = {
console.log(err);
} else {
var insert = "INSERT INTO blah VALUES ";
insert += "(1, 9223372036854775807, 'Jason', CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP)"
insert += "(1, 9223372036854775807, 'Jason', CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP)";
statement.executeUpdate(insert, function(err, result) {
test.expect(2);
test.equal(null, err);
Expand Down
2 changes: 1 addition & 1 deletion test/test-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
});
},
tearDown: function(callback) {
testpool == null;
testpool = null;
callback();
},
teststatus: function(test) {
Expand Down

0 comments on commit e669d52

Please sign in to comment.