Fixed go test findings on method usage
This commit is contained in:
parent
2cc33641a7
commit
cd226af651
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user