1
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:
Stefan Breunig 2017-09-19 23:30:08 +02:00
parent 7b89a5f656
commit 5a3a56abd8
3 changed files with 3 additions and 14 deletions

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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.