fix(lint): resolve errcheck and bodyclose warnings for golangci-lint v2

This commit is contained in:
Deivid Soto 2026-03-30 23:31:06 +02:00
parent 64d31bf4ed
commit 104820f4fe
7 changed files with 13 additions and 10 deletions

View file

@ -43,7 +43,7 @@ func TestDirOverrideEnv(t *testing.T) {
func TestDirXDGOverride(t *testing.T) {
// Clear the custom env so XDG takes effect
os.Unsetenv("UNARR_CONFIG_DIR")
_ = os.Unsetenv("UNARR_CONFIG_DIR")
t.Setenv("XDG_CONFIG_HOME", "/xdg/config")
dir := Dir()