Skip to content

Commit 1180410

Browse files
committed
fix an unused variable warning
1 parent fc3da57 commit 1180410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/js_lexer/js_lexer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func assertEqualStrings(t *testing.T, a string, b string) {
3232
}
3333
}
3434

35-
func lexToken(t *testing.T, contents string) T {
35+
func lexToken(contents string) T {
3636
log := logger.NewDeferLog(logger.DeferLogNoVerboseOrDebug, nil)
3737
lexer := NewLexer(log, test.SourceForTest(contents), config.TSOptions{})
3838
return lexer.Token
@@ -605,7 +605,7 @@ func TestTokens(t *testing.T) {
605605
contents := it.contents
606606
token := it.token
607607
t.Run(contents, func(t *testing.T) {
608-
test.AssertEqual(t, lexToken(t, contents), token)
608+
test.AssertEqual(t, lexToken(contents), token)
609609
})
610610
}
611611
}

0 commit comments

Comments
 (0)