summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.go b/main.go
index 6bb28fd49..465c8b5ea 100644
--- a/main.go
+++ b/main.go
@@ -76,9 +76,7 @@ func Init() {
// Use --prof for profiling JS.
if *flagGoProf != "" {
f, err := os.Create(*flagGoProf)
- if err != nil {
- panic(err)
- }
+ check(err)
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
}