报告冗余 return

方法中的最后一条语句会自动返回,在这种情况下使用 return 关键字是冗余的。

示例:


  def test: Int = {
    return 3
  }

在应用快速修复后:


  def test: Int = {
    3
  }