mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Remove some superfluous braces.
This commit is contained in:
1 parent
0bc6f792fb
commit
30ce73ad26
2 files changed
+208
-220
No files matched your search
@@ -117,11 +117,6 @@ func (g *gen) writeFuncPrototype(b *buffer, n *a.Func) error {
|
||||
func (g *gen) writeFuncImpl(b *buffer, n *a.Func) error {
|
||||
k := g.funks[n.QID()]
|
||||
|
||||
// TODO: delete this. This bool should only last for one git commit, to
|
||||
// separate one conceptual code change into two diff's: one small semantic
|
||||
// diff and one large cosmetic diff.
|
||||
temporaryIndentationHack := k.cName == "puffs_flate__flate_decoder__decode_huffman_fast"
|
||||
|
||||
if err := g.writeFuncSignature(b, n); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -129,14 +124,10 @@ func (g *gen) writeFuncImpl(b *buffer, n *a.Func) error {
|
||||
b.writex(k.bHeader)
|
||||
if k.suspendible && k.coroSuspPoint > 0 {
|
||||
b.writex(k.bBodyResume)
|
||||
} else if temporaryIndentationHack {
|
||||
b.writes("{\n")
|
||||
}
|
||||
b.writex(k.bBody)
|
||||
if k.suspendible && k.coroSuspPoint > 0 {
|
||||
b.writex(k.bBodySuspend)
|
||||
} else if temporaryIndentationHack {
|
||||
b.writes("}\n")
|
||||
}
|
||||
b.writex(k.bFooter)
|
||||
b.writes("}\n\n")
|
||||
|
||||
Reference in new issue
Block a user