[examples] Return early, decrease nesting

No `go fmt` to keep changes visible.
go fmt
Merge pull request #38 from michael-k/early-return

Early return, decrease nesting