fix(lint): exclude common fire-and-forget patterns from errcheck

This commit is contained in:
Deivid Soto 2026-03-30 23:34:36 +02:00
parent 104820f4fe
commit c0fd8d3818
8 changed files with 25 additions and 12 deletions

View file

@ -113,7 +113,7 @@ func plexLibraryPaths() []string {
if err != nil {
return nil
}
defer resp.Body.Close() //nolint:errcheck // best-effort close
defer resp.Body.Close()
if resp.StatusCode != 200 {
return nil
@ -200,7 +200,7 @@ func jellyfinLibraryPaths(baseURL string) []string {
if err != nil {
return nil
}
defer resp.Body.Close() //nolint:errcheck // best-effort close
defer resp.Body.Close()
if resp.StatusCode != 200 {
return nil