Merge pull request #14056 from mjtrangoni/fix-errcheck-issues

Fix errcheck issues
This commit is contained in:
Carl Bergquist
2018-11-21 17:23:56 +01:00
committed by GitHub
2 changed files with 34 additions and 8 deletions

View File

@@ -54,7 +54,10 @@ func main() {
if *profile {
runtime.SetBlockProfileRate(1)
go func() {
http.ListenAndServe(fmt.Sprintf("localhost:%d", *profilePort), nil)
err := http.ListenAndServe(fmt.Sprintf("localhost:%d", *profilePort), nil)
if err != nil {
panic(err)
}
}()
f, err := os.Create("trace.out")