Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
lint: remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Mar 24, 2019
1 parent 94f637e commit 5e069cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -247,8 +247,7 @@ function setCookie (res, name, val, options) {

var prev = res.getHeader('set-cookie') || []
var header = Array.isArray(prev) ? prev.concat(data)
: Array.isArray(data) ? [prev].concat(data)
: [prev, data]
: [prev, data]

res.setHeader('set-cookie', header)
}
Expand Down

0 comments on commit 5e069cc

Please sign in to comment.