From 01ae2843903b8340e2da3914f95df92b322e020e Mon Sep 17 00:00:00 2001 From: Negasus Date: Thu, 13 May 2021 09:00:58 +0300 Subject: [PATCH] add nolint:prealloc --- app/discovery/provider/consulcatalog/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/discovery/provider/consulcatalog/client.go b/app/discovery/provider/consulcatalog/client.go index 981225e..071f77c 100644 --- a/app/discovery/provider/consulcatalog/client.go +++ b/app/discovery/provider/consulcatalog/client.go @@ -40,7 +40,7 @@ func NewClient(address string, httpClient HTTPClient) ConsulClient { // Get implements ConsulClient interface and returns consul services list, // which have any tag with 'reproxy.' prefix func (cl *consulClient) Get() ([]consulService, error) { - var result []consulService + var result []consulService //nolint:prealloc // We cannot calc slice size serviceNames, err := cl.getServiceNames() if err != nil {