MiniProfiler icon indicating copy to clipboard operation
MiniProfiler copied to clipboard

Step method to return the yield call returned data?

Open josselinauguste opened this issue 11 years ago • 2 comments

Would it be possible that the step method returns the data returned by the yield call? It would make the calling code cleaner when the block don't just modify objects, but also returns data.

It seems quite straightforward to fix in the codebase, but i'm not sure of the potential consequences of such a behavioral change.

josselinauguste avatar May 30 '13 09:05 josselinauguste

I assume this is not for the .NET implementation?

dixon avatar May 30 '13 14:05 dixon

Indeed it applies to the ruby implementation

josselinauguste avatar May 30 '13 14:05 josselinauguste