Returns at the end of func bodies where the funcs have no return values
are pointless.
Change-Id: I0da5ea78671503e41a9f56dd770df8c919310ce5
Reviewed-on: https://go-review.googlesource.com/41093
Run-TryBot: Daniel Martà <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
}
buf.WriteByte('\n')
}
- return
}
// Test the line splitter, including some carriage returns but no long lines.
if e := recover(); e != nil {
t.Error(e.(gobError).err) // Will re-panic if not one of our errors, such as a runtime error.
}
- return
}
func newDecBuffer(data []byte) *decBuffer {
}
*err = ge.err
}
- return
}
default:
panic("unreachable")
}
-
- return
}
func (p *printer) possibleSelectorExpr(expr ast.Expr, prec1, depth int) bool {
default:
panic("unreachable")
}
-
- return
}
// ----------------------------------------------------------------------------
runtime.GC()
}
p.WriteTo(w, debug)
- return
}
// Index responds with the pprof-formatted profile named by the request.
}
}
root.removeNode(t)
- return
}
// scavengetreap visits each node in the treap and scavenges the
panic("bad recover")
}
}(1, 2, 3)
- return
}
func BenchmarkDefer10(b *testing.B) {
}
*errp = e.(error)
}
- return
}
// startParse initializes the parser, using the lexer.