From 0c3e1cba830001bb0b280d97357313d79b4bda22 Mon Sep 17 00:00:00 2001 From: Philipp Borgers Date: Thu, 24 Jan 2013 00:52:02 +0100 Subject: [PATCH] fix jshint errors in lib/native/query.js --- lib/native/query.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/native/query.js b/lib/native/query.js index ff9e5380..73dd14a9 100644 --- a/lib/native/query.js +++ b/lib/native/query.js @@ -20,7 +20,7 @@ var NativeQuery = function(config, values, callback) { this.text = config.text; this.values = config.values; this.callback = config.callback; - + this._result = new Result(); //normalize values if(this.values) { @@ -38,8 +38,9 @@ var p = NativeQuery.prototype; var mapRowData = function(row) { var result = {}; for(var i = 0, len = row.length; i < len; i++) { - var item = row[i]; - result[item.name] = item.value === null ? null : types.getTypeParser(item.type, 'text')(item.value); + var item = row[i]; + result[item.name] = item.value === null ? null : + types.getTypeParser(item.type, 'text')(item.value); } return result; }; @@ -79,14 +80,14 @@ p.handleReadyForQuery = function(meta) { }; p.streamData = function (connection) { if ( this.stream ) this.stream.startStreamingToConnection(connection); - else connection.sendCopyFail('No source stream defined'); + else connection.sendCopyFail('No source stream defined'); }; p.handleCopyFromChunk = function (chunk) { if ( this.stream ) { this.stream.handleChunk(chunk); } //if there are no stream (for example when copy to query was sent by - //query method instead of copyTo) error will be handled - //on copyOutResponse event, so silently ignore this error here + //query method instead of copyTo) error will be handled + //on copyOutResponse event, so silently ignore this error here }; module.exports = NativeQuery;