Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rammer <[email protected]>
  • Loading branch information
hamersaw committed Jan 17, 2025
1 parent 0f1e654 commit bcaa86f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flytepropeller/pkg/compiler/transformers/k8s/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ func StripTypeMetadata(t *core.LiteralType) *core.LiteralType {
}

// strip metadata from dataclass types
if c.Structure != nil && len(c.Structure.DataclassType) > 0 {
dataclassTypes := make(map[string]*core.LiteralType, len(c.Structure.DataclassType))
for k, v := range c.Structure.DataclassType {
if c.GetStructure() != nil && len(c.GetStructure().GetDataclassType()) > 0 {
dataclassTypes := make(map[string]*core.LiteralType, len(c.GetStructure().GetDataclassType()))
for k, v := range c.GetStructure().GetDataclassType() {
dataclassTypes[k] = StripTypeMetadata(v)
}

c.Structure.DataclassType = dataclassTypes
c.GetStructure().DataclassType = dataclassTypes
}

switch underlyingType := c.GetType().(type) {
Expand Down

0 comments on commit bcaa86f

Please sign in to comment.