There was an error while loading. Please reload this page.
1 parent 4dae923 commit 8f373ddCopy full SHA for 8f373dd
1 file changed
router.go
@@ -708,9 +708,9 @@ func newNode(
708
methods: mh,
709
paramChild: paramChildren,
710
anyChild: anyChildren,
711
- // len() (not == nil) so an empty-but-non-nil sc — e.g. a slice a prior
712
- // Remove spliced down to length 0 — is still treated as no children,
713
- // matching refreshLeaf.
+ // len() (not == nil) so an empty-but-non-nil sc — e.g. a slice from a
+ // prior Remove that was spliced down to length 0 — is still treated as
+ // no children, matching refreshLeaf.
714
isLeaf: len(sc) == 0 && paramChildren == nil && anyChildren == nil,
715
isHandler: mh.isHandler(),
716
}
0 commit comments