We don't use `single-exit` rule, so you can remove `result` and use `return` directly in the block.