报告用作返回值的变量。
示例:
# 不良做法 def foo(bar) result = bar + 1 result end
可以通过快速修复来移除这些变量。 应用快速修复后,结果如下所示:
# 优良做法 def foo(bar) bar + 1 end