fix or suppress lint warnings detected by golangci-lint 1.55.0

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-10-20 20:31:17 +02:00
parent 6282f95bd3
commit ba9df51b2e
17 changed files with 118 additions and 118 deletions

View File

@@ -281,11 +281,11 @@ func TestResumeCryptFs(t *testing.T) {
assert.Equal(t, initialHash, downloadHash)
err = os.Truncate(localDownloadPath, 32767)
assert.NoError(t, err)
err = ftpDownloadFile(testFileName, localDownloadPath+"_partial", testFileSize-32767, client, 32767)
err = ftpDownloadFile(testFileName, localDownloadPath+"_partial", testFileSize-32767, client, 32767) //nolint:goconst
assert.NoError(t, err)
file, err := os.OpenFile(localDownloadPath, os.O_APPEND|os.O_WRONLY, os.ModePerm)
assert.NoError(t, err)
file1, err := os.Open(localDownloadPath + "_partial")
file1, err := os.Open(localDownloadPath + "_partial") //nolint:goconst
assert.NoError(t, err)
_, err = io.Copy(file, file1)
assert.NoError(t, err)