We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3138432 commit 9187327Copy full SHA for 9187327
agent/agent.go
@@ -1274,16 +1274,16 @@ func (a *agent) isClosed() bool {
1274
1275
func (a *agent) MagicsockServeHTTPDebug(w http.ResponseWriter, r *http.Request) {
1276
a.closeMutex.Lock()
1277
- net := a.network
+ network := a.network
1278
a.closeMutex.Unlock()
1279
1280
- if net == nil {
+ if network == nil {
1281
w.WriteHeader(http.StatusOK)
1282
- w.Write([]byte("network is not ready yet"))
+ _, _ = w.Write([]byte("network is not ready yet"))
1283
return
1284
}
1285
1286
- net.MagicsockServeHTTPDebug(w, r)
+ network.MagicsockServeHTTPDebug(w, r)
1287
1288
1289
func (a *agent) Close() error {
0 commit comments