Skip to content

Commit 5abf362

Browse files
committed
fix self append
1 parent 76ba530 commit 5abf362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/components/dockercompose/chip_ingress_set/chip_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ func parseSchemaConfig(configFilePath, schemaDir string) (*registrationConfig, m
139139
key := fmt.Sprintf("%s:%s", s.Entity, s.Path)
140140
// if the schema already exists, that means it is referenced by another schema.
141141
// so we just need to add the references to the existing schema in the map
142-
if s, ok := schemas[key]; ok {
143-
s.References = append(s.References, s.References...)
142+
if existing, ok := schemas[key]; ok {
143+
existing.References = append(existing.References, s.References...)
144144
continue
145145
}
146146

0 commit comments

Comments
 (0)