Skip to content

Commit 356a28b

Browse files
committed
naked return
1 parent 016bcb6 commit 356a28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dev/go-style-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (c *TestChain) NextBlock() {
148148
---
149149
**Naked returns**
150150
151-
Only acceptable in a small function. Once it's a medium-sized function, be explicit with your returned values. Similarly, do not name result parameters just because it enables you to use naked returns. Clarity is always more important than saving a few lines in your function.
151+
We should always try to avoid naked returns. [Reference](https://google.github.io/styleguide/go/decisions#named-result-parameters)
152152
153153
---
154154
**Function and method calls should not be separated based solely on line length**

0 commit comments

Comments
 (0)