Remove unnecessary semicolons from generators