From 22c597b74af930ce2b7095af55abab7a00b50c3c Mon Sep 17 00:00:00 2001 From: James George Date: Fri, 10 Jan 2020 17:28:09 +0530 Subject: [PATCH] refactor: use Array.includes (#777) --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index bf0d69d1..55fa4825 100644 --- a/src/index.js +++ b/src/index.js @@ -84,8 +84,8 @@ function loader(content) { // Since we specified options.sourceMap = path.join(process.cwd(), "/sass.map"); in getSassOptions, // we know that this path is relative to process.cwd(). This is how node-sass works. // eslint-disable-next-line no-param-reassign - const stdinIndex = result.map.sources.findIndex( - (source) => source.indexOf('stdin') !== -1 + const stdinIndex = result.map.sources.findIndex((source) => + source.includes('stdin') ); if (stdinIndex !== -1) {