Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 96a22a2

Browse files
committed
consistentcy
On-behalf-of: @SAP [email protected] Signed-off-by: Artem Shcherbatiuk <[email protected]>
1 parent 249f80a commit 96a22a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gateway/resolver/relations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewRelationResolver(service *Service) *RelationResolver {
2626
// CreateResolver creates a GraphQL resolver for relation fields
2727
func (rr *RelationResolver) CreateResolver(fieldName string, targetGVK schema.GroupVersionKind) graphql.FieldResolveFn {
2828
return func(p graphql.ResolveParams) (interface{}, error) {
29-
parentObj, ok := p.Source.(map[string]interface{})
29+
parentObj, ok := p.Source.(map[string]any)
3030
if !ok {
3131
return nil, nil
3232
}
@@ -49,7 +49,7 @@ type referenceInfo struct {
4949
}
5050

5151
// extractReferenceInfo extracts reference details from a *Ref object
52-
func (rr *RelationResolver) extractReferenceInfo(parentObj map[string]interface{}, fieldName string) referenceInfo {
52+
func (rr *RelationResolver) extractReferenceInfo(parentObj map[string]any, fieldName string) referenceInfo {
5353
name, _ := parentObj["name"].(string)
5454
if name == "" {
5555
return referenceInfo{}

0 commit comments

Comments
 (0)