Reject a repeated bare token of a held name, naming the single-token spelling
Tests / vet + fmt + tests (pull_request) Successful in 53s
Tests / vet + fmt + tests (pull_request) Successful in 53s
This commit is contained in:
+1
-2
@@ -46,8 +46,7 @@ func linkRefs(root map[string]node) error {
|
||||
t.fields[key] = target
|
||||
t.refs[name] = key
|
||||
}
|
||||
t.compileFormat()
|
||||
if err := checkNoOverlap(t.format, t.bound, t.refs); err != nil {
|
||||
if err := t.compileFormat(); err != nil {
|
||||
return fmt.Errorf("%s: %w", path, err)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user