Use includes instead of indexOf

Co-Authored-By: rafeca <rafeca@gmail.com>
This commit is contained in:
Landon Abney
2019-02-26 19:00:44 +01:00
committed by Rafael Oleza
parent ccfd761a06
commit 55cdc398f6

View File

@@ -25,7 +25,7 @@ module.exports = async function () {
])
const paths = includePaths.filter(
myPath => excludePaths.indexOf(myPath) === -1
myPath => !excludePaths.includes(myPath)
)
return new Promise((resolve, reject) => {