mirror of
https://github.com/rclone/rclone
synced 2025-01-17 22:27:30 +01:00
yandex: address errcheck warnings
This commit is contained in:
parent
7b89a5f656
commit
5a3a56abd8
@ -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 New Issue
Block a user