this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

hepa: don't try to extract blobs from deleted records

+2 -3
+2 -3
automod/engine/blobs.go
··· 16 16 // 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? 17 17 func (c *RecordContext) Blobs() ([]lexutil.LexBlob, error) { 18 18 19 - if c.RecordOp.Action != CreateOp { 20 - // TODO: should this really error, or return empty array? 21 - return nil, fmt.Errorf("expected record creation, got: %s", c.RecordOp.Action) 19 + if c.RecordOp.Action == DeleteOp { 20 + return nil 22 21 } 23 22 24 23 var blobs []lexutil.LexBlob