fix(ci): remove gocritic unnecessaryDefer exclusion (#4525)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-04-25 23:47:08 +02:00
committed by GitHub
parent 6cd728394d
commit b0827d128a
3 changed files with 2 additions and 5 deletions

View File

@@ -133,9 +133,6 @@ linters:
- text: "Magic number: 1e"
linters:
- mnd
- text: "unnecessaryDefer"
linters:
- gocritic
- text: "filepathJoin"
linters:
- gocritic

View File

@@ -336,7 +336,7 @@ func TestFileStorage_New_MkdirAllFailureIsIgnored(t *testing.T) {
}, true)
require.NoError(t, err)
defer st.Close(ctx)
st.Close(ctx)
}
func TestFileStorage_New_ChecksDirectoryExistence(t *testing.T) {

View File

@@ -809,7 +809,7 @@ func verifyValidZipFile(t *testing.T, fname string) {
zr, err := zip.OpenReader(fname)
require.NoError(t, err)
defer zr.Close()
zr.Close()
}
func verifyValidTarFile(t *testing.T, fname string) {