Skip to content

Commit

Permalink
[ignore] Fix exclude_children for classes that contain more than one …
Browse files Browse the repository at this point in the history
…child
  • Loading branch information
akinross committed Jul 8, 2024
1 parent 2287d1f commit 595adf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ func (m *Model) SetClassChildren(classDetails interface{}, pkgNames []string) {
if key.(string) == "exclude_children" {
for _, child := range value.([]interface{}) {
if !slices.Contains(childClasses, child.(string)) {
excludeChildClasses = append(childClasses, child.(string))
excludeChildClasses = append(excludeChildClasses, child.(string))
}
}
}
Expand Down

0 comments on commit 595adf2

Please sign in to comment.