Reports redundant return.

The last statement in a method is automatically returned, the use of the return keyword is redundant in this case.

Example:


  def test: Int = {
    return 3
  }

After the quick-fix is applied:


  def test: Int = {
    3
  }