Skip to content

Commit

Permalink
fix: Fix very minor code issues spotted by goreportcard.com
Browse files Browse the repository at this point in the history
Signed-off-by: Jim.Idle <jimi@idle.ws>
  • Loading branch information
jimidle authored and parrt committed Sep 4, 2023
1 parent d13d47c commit 940a704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/Go/antlr/v4/comparators.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package antlr
// type safety and avoid having to implement this for every type that we want to perform comparison on.
//
// This comparator works by using the standard Hash() and Equals() methods of the type T that is being compared. Which
// allows us to use it in any collection instance that does nto require a special hash or equals implementation.
// allows us to use it in any collection instance that does not require a special hash or equals implementation.
type ObjEqComparator[T Collectable[T]] struct{}

var (
Expand Down
3 changes: 1 addition & 2 deletions runtime/Go/antlr/v4/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,8 @@ func (b *BaseLexer) NextToken() Token {
continueOuter := false
for {
b.thetype = TokenInvalidType
ttype := LexerSkip

ttype = b.safeMatch()
ttype := b.safeMatch() // Defaults to LexerSkip

if b.input.LA(1) == TokenEOF {
b.hitEOF = true
Expand Down

0 comments on commit 940a704

Please sign in to comment.