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