Skip to content

Commit fbfbc4b

Browse files
committed
Minor jshint fixes
1 parent 1f9698a commit fbfbc4b

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.jshintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@
1212
"sub": true,
1313
"trailing": true,
1414
"undef": true,
15-
"unused": true
15+
"unused": true,
16+
"predef": [
17+
"require",
18+
"global"
19+
]
1620
}

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function attachWorkerHelpers(worker) {
233233

234234
// worker has not acknowledged itself in 60 sec, reopen url
235235
client.changeUrl(self.id, { url: self.buildUrl() }, function () {
236-
logger.debug("[%s] Sent Request to reload url", self.getTestBrowserInfo());
236+
logger.debug('[%s] Sent Request to reload url', self.getTestBrowserInfo());
237237
});
238238

239239
}, ackTimeout * 1000);

lib/proxy.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var http = require('http'),
44
var ProxyServer = {
55
onRequest: function(client_req, client_res, host, callback) {
66
var proxyUrl = url.parse(host);
7-
var path = url.parse(host);
87
var options = {
98
path: client_req.url,
109
hostname: proxyUrl.hostname,
@@ -14,7 +13,7 @@ var ProxyServer = {
1413
};
1514

1615
var proxy = http.request(options, function (res) {
17-
data = "";
16+
var data = '';
1817
res.on('data', function(chunk) {
1918
data += chunk;
2019
});

lib/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ var Log = require('./logger'),
77

88
String.prototype.escapeSpecialChars = function() {
99
return this.replace(/\n/g, '\\n')
10-
// TODO what is this supposed to do? JSHint considers this "Bad or unnecessary escaping."
11-
.replace(/\\s/g, '\s')
1210
.replace(/\\\'/, '\'');
1311
};
1412

0 commit comments

Comments
 (0)