Skip to content

Commit 8e8ddff

Browse files
committed
fix: nil error shouldn't be wrapped
1 parent 9dfd523 commit 8e8ddff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/api/evaluate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (b *BreaseHandler) Evaluate(ctx context.Context, c *connect.Request[context
4040
}
4141
errStr += e
4242
}
43-
return nil, connect.NewError(connect.CodeInvalidArgument, errors.Wrap(schemaErr, fmt.Errorf("invalid object shape: %s", errStr)))
43+
return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("invalid object shape: %s", errStr))
4444
}
4545
}
4646

0 commit comments

Comments
 (0)