Skip to content

Commit 4af9f16

Browse files
committed
Adding/removing empty lines where needed
1 parent cd7bafd commit 4af9f16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/common/lexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,4 @@ func (l *Lexer) consumeComment() {
226226

227227
func (l *Lexer) CatchScannerError(s *scanner.Scanner, msg string) {
228228
l.SyntaxError(msg)
229-
}
229+
}

internal/common/lexer_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ func TestMultilineString(t *testing.T) {
118118
lex := common.NewLexer(test.definition, test.useStringDescriptions)
119119

120120
err := lex.CatchSyntaxError(func() { lex.ConsumeWhitespace() })
121-
122121
if test.failureExpected && err == nil {
123122
t.Fatalf("Test '%s' should fail", test.description)
124123
} else if test.failureExpected && err != nil {
@@ -132,4 +131,4 @@ func TestMultilineString(t *testing.T) {
132131
}
133132
})
134133
}
135-
}
134+
}

0 commit comments

Comments
 (0)