mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Fix linter errors
This commit is contained in:
@@ -249,8 +249,6 @@ class GrammarRegistry {
|
||||
fileTypes = fileTypes.concat(customFileTypes)
|
||||
}
|
||||
|
||||
if (!Array.isArray(fileTypes)) debugger
|
||||
|
||||
for (let i = 0; i < fileTypes.length; i++) {
|
||||
const fileType = fileTypes[i]
|
||||
const fileTypeComponents = fileType.toLowerCase().split(PATH_SPLIT_REGEX)
|
||||
|
||||
@@ -473,8 +473,9 @@ class LanguageLayer {
|
||||
async _performUpdate (containingNodes) {
|
||||
let includedRanges = []
|
||||
if (containingNodes) {
|
||||
for (const node of containingNodes)
|
||||
for (const node of containingNodes) {
|
||||
includedRanges.push(...this._rangesForInjectionNode(node))
|
||||
}
|
||||
if (includedRanges.length === 0) return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user