Fixed go test findings on method usage

This commit is contained in:
Philipp Häfelfinger 2019-03-12 23:52:04 +01:00
parent 2cc33641a7
commit cd226af651
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ func GetImageList(fileSystem map[string]*FilesystemNode) ([]*ImageNode, error) {
case <-finished: case <-finished:
case err := <-errChannel: case err := <-errChannel:
if err != nil { if err != nil {
logrus.Errorf("Error during local image processing: %S", err) logrus.Errorf("Error during local image processing: %s", err)
return nil, err return nil, err
} }
} }

View File

@ -66,7 +66,7 @@ func (context *PiwigoContext) postForm(formData url.Values) (resp *http.Response
client := http.Client{Jar: context.Cookies} client := http.Client{Jar: context.Cookies}
response, err := client.PostForm(context.url, formData) response, err := client.PostForm(context.url, formData)
if err != nil { if err != nil {
logrus.Errorln("The HTTP request failed with error %s", err) logrus.Errorf("The HTTP request failed with error %s", err)
return nil, err return nil, err
} }
return response, nil return response, nil