avram
avram copied to clipboard
Always pass record to block in DeleteOperation.delete
Right now, DeleteOperation conditionally passes the record to the block
https://github.com/luckyframework/avram/blob/9c8caecf052641d15dbe027e0cafb1741d8af33f/src/avram/needy_initializer_and_delete_methods.cr#L127-L131
Unless there's a good reason for that, it seems more ✨ ergonomic ✨ to always pass in the record.
Agreed! This should match with update operations that returns the record to the block whether or not the operation succeeds.