Skip to content

Commit a25ef7c

Browse files
committed
Fix indentation
1 parent 734a2cb commit a25ef7c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

lib/client.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ p.connect = function(callback) {
6363
});
6464

6565
con.once('backendKeyData', function(msg) {
66-
self.processID = msg.processID;
67-
self.secretKey = msg.secretKey;
68-
});
66+
self.processID = msg.processID;
67+
self.secretKey = msg.secretKey;
68+
});
6969

7070
//hook up query handling events to connection
7171
//after the connection initially becomes ready for queries
@@ -139,22 +139,22 @@ p.connect = function(callback) {
139139
};
140140

141141
p.cancel = function(client, query) {
142-
if (client.activeQuery == query) {
143-
var con = this.connection;
144-
145-
if(this.host && this.host.indexOf('/') === 0) {
146-
con.connect(this.host + '/.s.PGSQL.' + this.port);
147-
} else {
148-
con.connect(this.port, this.host);
149-
}
150-
151-
//once connection is established send cancel message
152-
con.on('connect', function() {
153-
con.cancel(client.processID, client.secretKey);
154-
});
155-
}
156-
else if (client.queryQueue.indexOf(query) != -1)
157-
client.queryQueue.splice(client.queryQueue.indexOf(query), 1);
142+
if (client.activeQuery == query) {
143+
var con = this.connection;
144+
145+
if(this.host && this.host.indexOf('/') === 0) {
146+
con.connect(this.host + '/.s.PGSQL.' + this.port);
147+
} else {
148+
con.connect(this.port, this.host);
149+
}
150+
151+
//once connection is established send cancel message
152+
con.on('connect', function() {
153+
con.cancel(client.processID, client.secretKey);
154+
});
155+
}
156+
else if (client.queryQueue.indexOf(query) != -1)
157+
client.queryQueue.splice(client.queryQueue.indexOf(query), 1);
158158
};
159159

160160
p._pulseQueryQueue = function() {

0 commit comments

Comments
 (0)