Return not continue

Maybe this code was originally copied from a loop that continue did something for?