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
|
fullURL += urlPath
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.PerformDelete(fullURL); err != nil {
|
return c.PerformDelete(fullURL)
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,5 @@ func (c *Client) EmptyTrash() error {
|
||||||
fullURL := RootAddr
|
fullURL := RootAddr
|
||||||
fullURL += "/v1/disk/trash/resources"
|
fullURL += "/v1/disk/trash/resources"
|
||||||
|
|
||||||
if err := c.PerformDelete(fullURL); err != nil {
|
return c.PerformDelete(fullURL)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,11 +23,7 @@ func (c *Client) Upload(data io.Reader, remotePath string, overwrite bool, conte
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.PerformUpload(ur.HRef, data, contentType); err != nil {
|
return c.PerformUpload(ur.HRef, data, contentType)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// UploadRequest will make an upload request and return a URL to upload data to.
|
// UploadRequest will make an upload request and return a URL to upload data to.
|
||||||
|
|
Loading…
Add table
Reference in a new issue