Skip to content

Commit

Permalink
feat: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerwill90 committed Oct 24, 2024
1 parent f659939 commit 33d5154
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,6 @@ const (
bracketDelim = '{'
)

var depth int

func (t *Tree) lookup(target *node, path string, c *cTx, lazy bool) (n *node, tsr bool) {
var (
charsMatched int
Expand Down Expand Up @@ -679,7 +677,6 @@ Walk:
// there is no tsr opportunity, and skipped nodes > 0, we will truncate the params anyway.
if !lazy {
*c.params = append(*c.params, Param{Key: current.params[paramKeyCnt].key, Value: path[startPath:]})
paramCnt++
}

// We are also in an ending catch all, and this is the most specific path
Expand All @@ -688,9 +685,6 @@ Walk:
}

charsMatched += len(path[charsMatched:])
// and this point len(path) == charsMatched
ctrl := len(path) == charsMatched
_ = ctrl

break Walk
}
Expand Down

0 comments on commit 33d5154

Please sign in to comment.