Skip to content

Commit 0556510

Browse files
NaN
1 parent de48b16 commit 0556510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gotty/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (server *Server) setupHandlers(ctx context.Context, cancel context.CancelFu
212212
siteMux.HandleFunc("/", server.handleMain)
213213
}
214214

215-
if pprofEnabled := os.Getenv("PPROF_ENABLED"); pprofEnabled != "" {
215+
if os.Getenv("PPROF_ENABLED") != "" {
216216
siteMux.HandleFunc("/debug/pprof/", pprof.Index)
217217
siteMux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
218218
siteMux.HandleFunc("/debug/pprof/profile", pprof.Profile)

0 commit comments

Comments
 (0)