There is some code directly above this:

message = "<p>Successfully saved your feedback. Fetching the next essay."
      if response.required_done
        message = message + " You have completed the required number of gradings."
      message = message + "</p>"
      @grading_message.html(message)

Why are both needed?