If you look on the right side of the Carburetor (Side with exhaust) there is 2 black wires coming off the carburetor where the throttle cable goes in try cutting those and tieing them together. If that solves it leave itlike that.
If that diid not work pull the Carburetor off and check your Pilot jet to make sure it is not clogged.
They're just a Thorttle Safety switch for incase of the event of a Stuck Throttle. If the cable goes out of adjustment it will cause the switch to be activated and will stop the spark. Very common isssue 90% of people just eliminate it.