v1.0.0 beta 10

This commit is contained in:
2026-03-06 12:12:16 +03:00
parent 9895edf966
commit f42d47af53
8 changed files with 43 additions and 24 deletions

View File

@@ -57,6 +57,8 @@ func (api *API) GetFileByLink(link string) ([]byte, error) {
if err != nil {
return nil, err
}
defer res.Body.Close()
defer func() {
_ = res.Body.Close()
}()
return io.ReadAll(res.Body)
}