Skip to content

Commit 0c3e1cb

Browse files
committed
fix jshint errors in lib/native/query.js
1 parent 3b1a5be commit 0c3e1cb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/native/query.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var NativeQuery = function(config, values, callback) {
2020
this.text = config.text;
2121
this.values = config.values;
2222
this.callback = config.callback;
23-
23+
2424
this._result = new Result();
2525
//normalize values
2626
if(this.values) {
@@ -38,8 +38,9 @@ var p = NativeQuery.prototype;
3838
var mapRowData = function(row) {
3939
var result = {};
4040
for(var i = 0, len = row.length; i < len; i++) {
41-
var item = row[i];
42-
result[item.name] = item.value === null ? null : types.getTypeParser(item.type, 'text')(item.value);
41+
var item = row[i];
42+
result[item.name] = item.value === null ? null :
43+
types.getTypeParser(item.type, 'text')(item.value);
4344
}
4445
return result;
4546
};
@@ -79,14 +80,14 @@ p.handleReadyForQuery = function(meta) {
7980
};
8081
p.streamData = function (connection) {
8182
if ( this.stream ) this.stream.startStreamingToConnection(connection);
82-
else connection.sendCopyFail('No source stream defined');
83+
else connection.sendCopyFail('No source stream defined');
8384
};
8485
p.handleCopyFromChunk = function (chunk) {
8586
if ( this.stream ) {
8687
this.stream.handleChunk(chunk);
8788
}
8889
//if there are no stream (for example when copy to query was sent by
89-
//query method instead of copyTo) error will be handled
90-
//on copyOutResponse event, so silently ignore this error here
90+
//query method instead of copyTo) error will be handled
91+
//on copyOutResponse event, so silently ignore this error here
9192
};
9293
module.exports = NativeQuery;

0 commit comments

Comments
 (0)