Remove "do" from "while"

Normally, "do" is omitted for "while" in Ruby.