forked from TrueCloudLab/rclone
yandex: address errcheck warnings
This commit is contained in:
parent
7b89a5f656
commit
5a3a56abd8
3 changed files with 3 additions and 14 deletions
|
@ -19,8 +19,5 @@ func (c *Client) Delete(remotePath string, permanently bool) error {
|
|||
fullURL += urlPath
|
||||
}
|
||||
|
||||
if err := c.PerformDelete(fullURL); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return c.PerformDelete(fullURL)
|
||||
}
|
||||
|
|
|
@ -5,9 +5,5 @@ func (c *Client) EmptyTrash() error {
|
|||
fullURL := RootAddr
|
||||
fullURL += "/v1/disk/trash/resources"
|
||||
|
||||
if err := c.PerformDelete(fullURL); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return c.PerformDelete(fullURL)
|
||||
}
|
||||
|
|
|
@ -23,11 +23,7 @@ func (c *Client) Upload(data io.Reader, remotePath string, overwrite bool, conte
|
|||
return err
|
||||
}
|
||||
|
||||
if err := c.PerformUpload(ur.HRef, data, contentType); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return c.PerformUpload(ur.HRef, data, contentType)
|
||||
}
|
||||
|
||||
// UploadRequest will make an upload request and return a URL to upload data to.
|
||||
|
|
Loading…
Reference in a new issue