Skip to content

Commit

Permalink
refactor: use Array.includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Nov 26, 2019
1 parent 9274387 commit 3b7a3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -85,7 +85,7 @@ function loader(content) {
// 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
(source) => source.includes('stdin')
);

if (stdinIndex !== -1) {
Expand Down

0 comments on commit 3b7a3fe

Please sign in to comment.