Skip to content

Commit be85de2

Browse files
committed
chore: fix typos
1 parent 42531e9 commit be85de2

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/main/kotlin/com/github/aleksandrsl/intellijbrowserslist/inspections/MissingNotDeadInspection.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BrowserslistMissingNotDeadInspection : BrowserslistInspectionBase() {
2424
override fun visitElement(element: PsiElement) {
2525
super.visitElement(element)
2626
if (element is BrowserslistSection) {
27-
// Not likely but we may have a bunch of last query
27+
// Not likely, but we may have a bunch of last queries
2828
val lastQuery =
2929
PsiTreeUtil.findChildrenOfType(element, BrowserslistLastQuery::class.java).lastOrNull()
3030
?: return
@@ -35,7 +35,7 @@ class BrowserslistMissingNotDeadInspection : BrowserslistInspectionBase() {
3535
}
3636

3737
if (!hasNotDeadAfter) {
38-
// If there is more than one already, it's a different kind of decease and needs another quick fix. We can just add one more instead of moving the last one for now.
38+
// If there is more than one already, it's a different kind of disease and needs another quick fix. We can just add one more instead of moving the last one for now.
3939
val quickFix = if (findNotDeadExpressions(element).size == 1) {
4040
moveNotDeadQuickFix
4141
} else {

src/test/kotlin/parser/BrowsersListParsingErrorRecoveryTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package parser
22

3-
import com.github.aleksandrsl.intellijbrowserslist.psi.BrowserslistQuery
43
import com.github.aleksandrsl.intellijbrowserslist.psi.BrowserslistQueryExpression
54
import com.github.aleksandrsl.intellijbrowserslist.psi.BrowserslistSimpleExpression
65
import com.intellij.psi.PsiElement
@@ -10,7 +9,7 @@ import com.intellij.psi.PsiFile
109
import com.intellij.psi.util.parents
1110
import java.io.IOException
1211

13-
class LuauParserRecoveryTest : BrowserslistParsingBaseTestCase("recovery") {
12+
class BrowsersListParsingErrorRecoveryTest : BrowserslistParsingBaseTestCase("recovery") {
1413

1514
fun testQuery() = doTest(BrowserslistSimpleExpression::class.java)
1615
fun testQueryExpression() = doTest(BrowserslistQueryExpression::class.java)

src/test/testData/inspections/MissingNotDead/AddNotDead/MultipleSectionsConstrainedToScope3.after.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[production]
22
maintained node versions and node 14.0
3-
# We still should have an error here, the second section does not affect the frist
3+
# We still should have an error here, the second section does not affect the first
44
last 2 versions
55
not dead
66

src/test/testData/inspections/MissingNotDead/AddNotDead/MultipleSectionsConstrainedToScope3.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[production]
22
maintained node versions and node 14.0
3-
# We still should have an error here, the second section does not affect the frist
3+
# We still should have an error here, the second section does not affect the first
44
last <caret>2 versions
55

66
[modern]

0 commit comments

Comments
 (0)