Skip to content

Commit

Permalink
Minor jshint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shirish87 committed Aug 9, 2015
1 parent 1f9698a commit fbfbc4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
"sub": true,
"trailing": true,
"undef": true,
"unused": true
"unused": true,
"predef": [
"require",
"global"
]
}
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function attachWorkerHelpers(worker) {

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

}, ackTimeout * 1000);
Expand Down
3 changes: 1 addition & 2 deletions lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var http = require('http'),
var ProxyServer = {
onRequest: function(client_req, client_res, host, callback) {
var proxyUrl = url.parse(host);
var path = url.parse(host);
var options = {
path: client_req.url,
hostname: proxyUrl.hostname,
Expand All @@ -14,7 +13,7 @@ var ProxyServer = {
};

var proxy = http.request(options, function (res) {
data = "";
var data = '';
res.on('data', function(chunk) {
data += chunk;
});
Expand Down
2 changes: 0 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ var Log = require('./logger'),

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

Expand Down

0 comments on commit fbfbc4b

Please sign in to comment.