Skip to content

Commit

Permalink
Relax severity of input guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieMcKinstry committed Nov 14, 2022
1 parent 33a366d commit 2fda7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/codegen/pcl/invoke.go
Expand Up @@ -150,7 +150,7 @@ func (b *binder) bindInvokeSignature(args []model.Expression) (model.StaticFunct

// annotate the input args on the expression with the input type of the function
if argsObject, isObjectExpression := args[1].(*model.ObjectConsExpression); isObjectExpression {
if len(argsObject.Items) > 0 && fn.Inputs != nil {
if fn.Inputs != nil {
annotateObjectProperties(argsObject.Type(), fn.Inputs)
}
}
Expand Down

0 comments on commit 2fda7de

Please sign in to comment.