Answer architecture round 2: name eachNode's callback parameter label in node_test.go

This commit is contained in:
2026-10-05 21:11:36 +02:00
committed by Lillem4n
parent 54cb52b483
commit 15b94b2718
+2 -2
View File
@@ -92,9 +92,9 @@ func TestEveryFormatCompilesAtLink(t *testing.T) {
}
compiledByPath := func() map[string]bool {
compiled := map[string]bool{}
if err := eachNode(n, "t", func(path string, m node) error {
if err := eachNode(n, "t", func(label string, m node) error {
if tm, ok := m.(*template); ok {
compiled[path+" "+tm.format] = tm.compiled.ops != nil
compiled[label+" "+tm.format] = tm.compiled.ops != nil
}
return nil
}); err != nil {