New York State law governs the election of its electors, which Trump had zero chance of getting.
Subject to Amendment XV of course.