This commit is contained in:
Kegan Dougal 2020-07-09 17:30:47 +01:00
parent 03350aa73f
commit 7bc7efc795

View file

@ -169,7 +169,7 @@ func DeleteDeviceById(
deviceID string, deviceID string,
) util.JSONResponse { ) util.JSONResponse {
ctx := req.Context() ctx := req.Context()
defer req.Body.Close() defer req.Body.Close() // nolint:errcheck
bodyBytes, err := ioutil.ReadAll(req.Body) bodyBytes, err := ioutil.ReadAll(req.Body)
if err != nil { if err != nil {
return util.JSONResponse{ return util.JSONResponse{