1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Whitespace and other JSHint changes.

This commit is contained in:
Matt Ranney
2012-09-10 22:50:54 -07:00
parent 63f4f5cdf2
commit 670c256e35
6 changed files with 58 additions and 65 deletions

View File

@@ -1,5 +1,3 @@
/*global Buffer require exports console setTimeout */
var events = require("events"),
util = require("../util"),
hiredis = require("hiredis");
@@ -29,13 +27,15 @@ HiredisReplyParser.prototype.execute = function (data) {
this.reader.feed(data);
while (true) {
try {
reply = this.reader.get();
reply = this.reader.get();
} catch (err) {
this.emit("error", err);
break;
this.emit("error", err);
break;
}
if (reply === undefined) break;
if (reply === undefined) {
break;
}
if (reply && reply.constructor === Error) {
this.emit("reply error", reply);