···1616// NOTE: for consistency with other RecordContext methods, which don't usually return errors, maybe the error-returning version of this function should be a helper function, or definted on RecordOp, and the RecordContext version should return an empty array on error?
1717func (c *RecordContext) Blobs() ([]lexutil.LexBlob, error) {
18181919- if c.RecordOp.Action != CreateOp {
2020- // TODO: should this really error, or return empty array?
2121- return nil, fmt.Errorf("expected record creation, got: %s", c.RecordOp.Action)
1919+ if c.RecordOp.Action == DeleteOp {
2020+ return nil
2221 }
23222423 var blobs []lexutil.LexBlob