Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalina committed Nov 26, 2019
1 parent a338322 commit e14ba01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -184,10 +184,10 @@ function compression (options) {
var accept = accepts(req)

var methodDict = {
br: function () { return stream = zlib.createBrotliCompress(brotliZlib) },
gzip: function () { return stream = zlib.createGzip(opts) },
deflate: function () { return stream = zlib.createDeflate(opts) },
identity: function () { nocompress('not acceptable') }
br: function () { stream = zlib.createBrotliCompress(brotliZlib); return true },
gzip: function () { stream = zlib.createGzip(opts); return true },
deflate: function () { stream = zlib.createDeflate(opts); return true },
identity: function () { nocompress('not acceptable'); return false }
}

var method = Object.keys(methodDict)
Expand Down

0 comments on commit e14ba01

Please sign in to comment.