Skip to content

Commit

Permalink
small ref
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fbudzynski committed Dec 19, 2024
1 parent 57ebbc3 commit 560cc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sdk/poc/generator/show_object_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *Operation) withShowObjectMethods(structName string, showObjectMethodsKi
log.Printf("[WARN] struct '%s' does not contain needed fields to build ID() helper method. Create the method manually in _ext file or add missing fields: %v.\n", structName, idTypeParts[id])
continue
}
s.ShowObjectMethods = append(s.ShowObjectMethods, newShowObjectIDMethod(structName, s.HelperStructs, id))
s.ShowObjectMethods = append(s.ShowObjectMethods, newShowObjectIDMethod(structName, id))
case ShowObjectTypeMethod:
s.ShowObjectMethods = append(s.ShowObjectMethods, newShowObjectTypeMethod(structName))
default:
Expand Down Expand Up @@ -84,7 +84,7 @@ func containsFieldNames(fields []*Field, names ...string) bool {
return true
}

func newShowObjectIDMethod(structName string, helperStructs []*Field, idType objectIdentifierKind) *ShowObjectMethod {
func newShowObjectIDMethod(structName string, idType objectIdentifierKind) *ShowObjectMethod {
requiredFields := idTypeParts[idType]
var args string
for _, field := range requiredFields {
Expand Down

0 comments on commit 560cc8b

Please sign in to comment.