3 U.S.C. § 5 : US Code - Section 5: Determination of controversy as to appointment of electors

      If any State shall have provided, by laws enacted prior to the
    day fixed for the appointment of the electors, for its final
    determination of any controversy or contest concerning the
    appointment of all or any of the electors of such State, by
    judicial or other methods or procedures, and such determination
    shall have been made at least six days before the time fixed for
    the meeting of the electors, such determination made pursuant to
    such law so existing on said day, and made at least six days prior
    to said time of meeting of the electors, shall be conclusive, and
    shall govern in the counting of the electoral votes as provided in
    the Constitution, and as hereinafter regulated, so far as the
    ascertainment of the electors appointed by such State is concerned.