Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Remove redundant nil checks

teresy5ee1bd7ba462
diff --git a/backend/yandex/api/client.go b/backend/yandex/api/client.go
index 07b7a3430..24a0c9583 100644
--- a/backend/yandex/api/client.go
+++ b/backend/yandex/api/client.go
@@ -67,10 +67,8 @@ var defaultErrorHandler ErrorHandler = func(resp *http.Response) error {
func (HTTPRequest *HTTPRequest) run(client *Client) ([]byte, error) {
var err error
values := make(url.Values)
- if HTTPRequest.Parameters != nil {
- for k, v := range HTTPRequest.Parameters {
- values.Set(k, fmt.Sprintf("%v", v))
- }
+ for k, v := range HTTPRequest.Parameters {
+ values.Set(k, fmt.Sprintf("%v", v))
}
var req *http.Request