mirror of
https://github.com/kopia/kopia.git
synced 2026-05-19 04:04:56 -04:00
fix(ci): remove gocritic unnecessaryDefer exclusion (#4525)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -133,9 +133,6 @@ linters:
|
||||
- text: "Magic number: 1e"
|
||||
linters:
|
||||
- mnd
|
||||
- text: "unnecessaryDefer"
|
||||
linters:
|
||||
- gocritic
|
||||
- text: "filepathJoin"
|
||||
linters:
|
||||
- gocritic
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user