Appeal by the defendant from a judgment of the County Court, Nassau County (Brown, J.), rendered July 23, 2003, convicting him of criminal possession of a controlled substance in the seventh degree, upon his plea of guilty, and imposing sentence.
Ordered that the judgment is affirmed.
The defendant’s waiver of his right to appeal precludes appellate review of his contention that he was denied the effective assistance of counsel, except to the extent that it may have affected the voluntariness of the plea (see People v Demosthene,
Furthermore, by pleading guilty, the defendant forfeited appellate review of issues relating to pretrial discovery (see People v Hansen,
The defendant’s remaining contention is without merit. Florio, J.P., Goldstein, Adams, Rivera and Spolzino, JJ., concur.
