mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use String::startsWith
This commit is contained in:
@@ -25,7 +25,7 @@ else
|
||||
pathToCheck and pathToCheck[0] is '/'
|
||||
|
||||
isCorePath = (pathToCheck) ->
|
||||
pathToCheck.indexOf(cache.resourcePathWithTrailingSlash) is 0
|
||||
pathToCheck.startsWith(cache.resourcePathWithTrailingSlash)
|
||||
|
||||
loadDependencies = (modulePath, rootPath, rootMetadata, moduleCache) ->
|
||||
fs = require 'fs-plus'
|
||||
|
||||
Reference in New Issue
Block a user