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 fullURL += urlPath
} }
if err := c.PerformDelete(fullURL); err != nil { return c.PerformDelete(fullURL)
return err
}
return nil
} }

View file

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

View file

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