Removes an invalid return statement