From 90ddeaaf837952718e0ce352b951478938854939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Z=C3=B6rb?= Date: Fri, 15 Nov 2019 23:57:15 +0100 Subject: [PATCH] fix: removed silly '> 0' boolean check (#266) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d038614..90af6cd 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ function inline(html, styles, options) { } } - if (Array.isArray(o.replaceStylesheets) > 0 && links.length > 0) { + if (Array.isArray(o.replaceStylesheets) && links.length > 0) { // Detect links to be removed const [ref] = links; const removable = [...document.querySelectorAll('link[rel="stylesheet"], link[rel="preload"][as="style"]')].filter(