fix(lint): resolve errcheck and bodyclose warnings for golangci-lint v2
This commit is contained in:
parent
64d31bf4ed
commit
104820f4fe
7 changed files with 13 additions and 10 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue