Style/EmptyCaseCondition autofix breaks code when returning from branches · Issue #6196 · rubocop/rubocop

Expected behavior Given the smallest example def a c = case when x.a 1 when x.b return 2 end c + c end Run rubocop with autofix mode. Expected to leave it as is (at least working) or format. Actual...