no need to defer

This commit is contained in:
Fran Bull committed 2025-02-26 09:26:39 -08:00
1 parent 5e15c25937
commit 2d2b954006
1 file changed
+1 -1
+1 -1
View File
@@ -149,6 +149,6 @@ func (m *monitor) handleDial(w http.ResponseWriter, r *http.Request) {
http.Error(w, "", 500)
return
}
defer c.Close()
c.Close()
w.Write([]byte("ok\n"))
}