Skip to content

Commit

Permalink
MB-57394: Remove unnecessary for loop before dereferencing array content
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti committed Jun 26, 2023
1 parent 3835fec commit 98f2215
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,6 @@ type builderNode struct {
func (n *builderNode) reset() {
n.final = false
n.finalOutput = 0
for i := range n.trans {
n.trans[i] = emptyTransition
}
n.trans = n.trans[:0]
n.next = nil
}
Expand Down

0 comments on commit 98f2215

Please sign in to comment.