From b1a45c7ea6540bdfbe6bb9824439cb178fbb80f5 Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 8 Oct 2012 17:11:42 -0400 Subject: [PATCH] Lint --- lib/imap.js | 70 +++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/lib/imap.js b/lib/imap.js index b5a71ba..64fe8e6 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -187,7 +187,7 @@ ImapConnection.prototype.connect = function(loginCb) { if (b.length === 0 || b.p >= b.length) return; self.debug&&self.debug('\n<== ' + inspect(b.toString('binary', b.p)) + '\n'); - var r, m, litType; + var r, m, litType, i, len, msg; if (indata.expect > 0) { r = read(b); if (indata.streaming) { @@ -228,7 +228,7 @@ ImapConnection.prototype.connect = function(loginCb) { if (indata.expect > -1) { if ((m = /\* (\d+) FETCH/i.exec(indata.line)) && /^BODY\[/i.test(litType)) { - var msg = new ImapMessage(); + msg = new ImapMessage(); msg.seqno = parseInt(m[1], 10); requests[0]._msg = msg; requests[0]._fetcher.emit('message', msg); @@ -271,7 +271,7 @@ ImapConnection.prototype.connect = function(loginCb) { switch (m.type) { case 'FETCH': // m.info = message details - var msg = (requests[0] && requests[0]._msg + msg = (requests[0] && requests[0]._msg ? requests[0]._msg : new ImapMessage()); parsers.parseFetch(m.info, indata.literals, msg); @@ -383,7 +383,7 @@ ImapConnection.prototype.connect = function(loginCb) { var path = name.split(box.delimiter).filter(utils.isNotEmpty), parent = null; name = path.pop(); - for (var i=0,len=path.length; i