From 7c96c6040c5df295814876cf110482ee0c2f6dcf Mon Sep 17 00:00:00 2001 From: pmahindrakar-oss Date: Thu, 26 Sep 2024 11:20:46 -0700 Subject: [PATCH] fix refactor Signed-off-by: pmahindrakar-oss --- flytepropeller/pkg/controller/nodes/array/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flytepropeller/pkg/controller/nodes/array/handler.go b/flytepropeller/pkg/controller/nodes/array/handler.go index bb1c7ff0819..66c61f88f80 100644 --- a/flytepropeller/pkg/controller/nodes/array/handler.go +++ b/flytepropeller/pkg/controller/nodes/array/handler.go @@ -192,7 +192,6 @@ func (a *arrayNodeHandler) Handle(ctx context.Context, nCtx interfaces.NodeExecu size := -1 containsOffloadedLiteral := false for _, variable := range literalMap.Literals { - literalType := validators.LiteralTypeForLiteral(variable) if variable.GetOffloadedMetadata() != nil { // variable will be overwritten with the contents of the offloaded data which contains the actual large literal. // We need this for the map task to be able to create the subNodeSpec @@ -204,7 +203,7 @@ func (a *arrayNodeHandler) Handle(ctx context.Context, nCtx interfaces.NodeExecu ), nil } } - + literalType := validators.LiteralTypeForLiteral(variable) switch literalType.Type.(type) { case *idlcore.LiteralType_CollectionType: collectionLength := len(variable.GetCollection().Literals)