mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use includes instead of indexOf
Co-Authored-By: rafeca <rafeca@gmail.com>
This commit is contained in:
committed by
Rafael Oleza
parent
ccfd761a06
commit
55cdc398f6
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user