When using this I thought it would be useful to check if a diff is empty for conditional behaviour.
I'm not hugely happy with the logic in empty? - in particular it feels a bit unpleasant to conditionally call diff, but it seems like the simplest way of implementing this functionality without some overhaul to break up the diff method.
Hope this is useful; let me know if you'd like any changes.
When using this I thought it would be useful to check if a diff is empty for conditional behaviour.
I'm not hugely happy with the logic in
empty?
- in particular it feels a bit unpleasant to conditionally calldiff,
but it seems like the simplest way of implementing this functionality without some overhaul to break up thediff
method.Hope this is useful; let me know if you'd like any changes.