Skip to content

Commit

Permalink
Fix 'surrounding loop is unconditionally terminated' in function 'rol…
Browse files Browse the repository at this point in the history
…lbackSkipped'
  • Loading branch information
StephanoGeorge committed Aug 7, 2022
1 parent 1a73305 commit 8f2fd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func (n *node) getValue(path string, params *Params, skippedNodes *[]skippedNode
parentHasHandlers := false

rollbackSkipped := func() bool {
for l := len(*skippedNodes); l > 0; {
if l := len(*skippedNodes); l > 0 {
skippedNode := (*skippedNodes)[l-1]
*skippedNodes = (*skippedNodes)[:l-1]
path = skippedNode.path
Expand Down

0 comments on commit 8f2fd7a

Please sign in to comment.