Skip to content

Commit

Permalink
refactor: use Array.includes (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and evilebottnawi committed Jan 10, 2020
1 parent ed345fa commit 22c597b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 22c597b

Please sign in to comment.