Hiding variable inside match expression is not very good - it can cause issues if method grows. But it's not the case. So, probably this change is not so good too.