fix lint
This commit is contained in:
parent
c7de7882a1
commit
f372964a60
6
extern/sector-storage/stores/http_handler.go
vendored
6
extern/sector-storage/stores/http_handler.go
vendored
@ -117,7 +117,11 @@ func (handler *FetchHandler) remoteGetSector(w http.ResponseWriter, r *http.Requ
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !stat.IsDir() {
|
if !stat.IsDir() {
|
||||||
defer rd.(*os.File).Close()
|
defer func() {
|
||||||
|
if err := rd.(*os.File).Close(); err != nil {
|
||||||
|
log.Errorf("closing source file: %+v", err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(200)
|
||||||
|
Loading…
Reference in New Issue
Block a user