removing useless variable

Removing an useless variable because we can use continue instead of break.