Improve program flow.

go vet .
util.go:80: unreachable code