mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use testSync instead of test
This commit is contained in:
@@ -72,7 +72,7 @@ class LanguageMode
|
||||
blank = line?.match(/^\s*$/)
|
||||
|
||||
allBlank = false unless blank
|
||||
allBlankOrCommented = false unless blank or commentStartRegex.test(line)
|
||||
allBlankOrCommented = false unless blank or commentStartRegex.testSync(line)
|
||||
|
||||
shouldUncomment = allBlankOrCommented and not allBlank
|
||||
|
||||
|
||||
Reference in New Issue
Block a user