Skip to content

Commit

Permalink
fix refactor
Browse files Browse the repository at this point in the history
Signed-off-by: pmahindrakar-oss <[email protected]>
  • Loading branch information
pmahindrakar-oss committed Sep 26, 2024
1 parent f24feaf commit 7c96c60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flytepropeller/pkg/controller/nodes/array/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 7c96c60

Please sign in to comment.