Skip to content

Commit

Permalink
eslint: always space-before-blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
froatsnook committed Apr 13, 2015
1 parent 6e0309e commit 005cf77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Expand Up @@ -37,6 +37,9 @@
"no-shadow": 0,
// Use if () { }
// ^ space
"space-after-keywords": [2, "always"]
"space-after-keywords": [2, "always"],
// Use if () { }
// ^ space
"space-before-blocks": [2, "always"]
}
}
6 changes: 3 additions & 3 deletions request.js
Expand Up @@ -579,12 +579,12 @@ Request.prototype.init = function (options) {
}

if (self.uri.auth && !self.hasHeader('authorization')) {
var uriAuthPieces = self.uri.auth.split(':').map(function(item){ return querystring.unescape(item) })
var uriAuthPieces = self.uri.auth.split(':').map(function(item) { return querystring.unescape(item) })
self.auth(uriAuthPieces[0], uriAuthPieces.slice(1).join(':'), true)
}

if (!self.tunnel && self.proxy && self.proxy.auth && !self.hasHeader('proxy-authorization')) {
var proxyAuthPieces = self.proxy.auth.split(':').map(function(item){
var proxyAuthPieces = self.proxy.auth.split(':').map(function(item) {
return querystring.unescape(item)
})
var authHeader = 'Basic ' + toBase64(proxyAuthPieces.join(':'))
Expand Down Expand Up @@ -1299,7 +1299,7 @@ Request.prototype.qs = function (q, clobber) {
base[i] = q[i]
}

if (self.qsLib.stringify(base, self.qsStringifyOptions) === ''){
if (self.qsLib.stringify(base, self.qsStringifyOptions) === '') {
return self
}

Expand Down

0 comments on commit 005cf77

Please sign in to comment.