You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: races_helper.rb
    path of file: ./repos/splits-io/app/helpers
    
    the code of the file until where you have to start completion: module RacesHelper
  def statcard_class(race)
    case
    when !race.started?
      'text-success'
    when
    
  def statcard_class(race)
    case
    when !race.started?
      'text-success'
    when race.in_progress?
      'text-warning'
    when race.finished?
      nil
    else
      raise 'invalid status'
    end