summaryrefslogtreecommitdiff
path: root/tests/plugins/http/uploads_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-28 21:24:12 +0300
committerValery Piashchynski <[email protected]>2021-03-28 21:24:12 +0300
commitb7d84bdf93ce90925f22091dd8df02985dd07a77 (patch)
tree70dd11bf64f8ac633749c96bd439ea91640ca7bd /tests/plugins/http/uploads_test.go
parent90df04b77bf8cf2c590680fbdde09e519e1b4f83 (diff)
- Fix new linters warnings
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/http/uploads_test.go')
-rw-r--r--tests/plugins/http/uploads_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/http/uploads_test.go b/tests/plugins/http/uploads_test.go
index 68d4cbae..bc7e17df 100644
--- a/tests/plugins/http/uploads_test.go
+++ b/tests/plugins/http/uploads_test.go
@@ -67,9 +67,9 @@ func TestHandler_Upload_File(t *testing.T) {
f := mustOpen(testFile)
defer func() {
- err := f.Close()
- if err != nil {
- t.Errorf("failed to close a file: error %v", err)
+ errC := f.Close()
+ if errC != nil {
+ t.Errorf("failed to close a file: error %v", errC)
}
}()
fw, err := w.CreateFormFile("upload", f.Name())
@@ -419,7 +419,7 @@ func fileString(f string, errNo int, mime string) string {
r, err := json.Marshal(v)
if err != nil {
- fmt.Println(fmt.Errorf("error marshalling fInfo, error: %v", err))
+ fmt.Println(fmt.Errorf("error marshaling fInfo, error: %v", err))
}
return string(r)
}