Skip to content

Commit 47169f3

Browse files
committed
bcdb_mock: don't write response twice
1 parent 21b0339 commit 47169f3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tools/bcdb_mock/node_handlers.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ func (s *nodeStore) cockpitListNodes(w http.ResponseWriter, r *http.Request) {
114114
}
115115
}
116116

117-
w.Header().Set("Content-Type", "application/json")
118-
w.WriteHeader(http.StatusOK)
119-
_ = json.NewEncoder(w).Encode(nodes)
120-
121117
x := struct {
122118
Node []*directory.TfgridNode2 `json:"nodes"`
123119
}{nodes}

0 commit comments

Comments
 (0)