mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: tweaks to unindent some code
Prioritized the chunks of code with 8 or more levels of indentation. Basically early breaks/returns and joining nested ifs. Change-Id: I6817df1303226acf2eb904a29f2db720e4f7427a Reviewed-on: https://go-review.googlesource.com/55630 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
064ae118c1
commit
3366f51544
7 changed files with 96 additions and 99 deletions
|
|
@ -480,9 +480,8 @@ func staticassign(l *Node, r *Node, out *[]*Node) bool {
|
|||
n := *l
|
||||
gdata(&n, r.Func.Closure.Func.Nname, Widthptr)
|
||||
return true
|
||||
} else {
|
||||
closuredebugruntimecheck(r)
|
||||
}
|
||||
closuredebugruntimecheck(r)
|
||||
|
||||
case OCONVIFACE:
|
||||
// This logic is mirrored in isStaticCompositeLiteral.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue