From 5e069cc43893ddc5638a2540d90e1f72620e5eb2 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 24 Mar 2019 18:14:32 -0400 Subject: [PATCH] lint: remove unreachable code --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index aed049d..971393b 100644 --- a/index.js +++ b/index.js @@ -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) }