From 219de7b8cbfe0a9f30aa1c2bf255c21c2eb98605 Mon Sep 17 00:00:00 2001
From: Ishank Arora <ishank011@gmail.com>
Date: Thu, 25 Mar 2021 13:28:13 +0100
Subject: [PATCH] Fix lint

---
 internal/grpc/services/gateway/storageprovider.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/grpc/services/gateway/storageprovider.go b/internal/grpc/services/gateway/storageprovider.go
index 2fb7e9a49a..1d0169d31c 100644
--- a/internal/grpc/services/gateway/storageprovider.go
+++ b/internal/grpc/services/gateway/storageprovider.go
@@ -1167,7 +1167,7 @@ func (s *svc) stat(ctx context.Context, req *provider.StatRequest) (*provider.St
 	}
 
 	var totalSize uint64
-	var infos []*provider.ResourceInfo
+	infos := []*provider.ResourceInfo{}
 	for _, p := range providers {
 		c, err := s.getStorageProviderClient(ctx, p)
 		if err != nil {
@@ -1529,7 +1529,7 @@ func (s *svc) listContainer(ctx context.Context, req *provider.ListContainerRequ
 	}
 	wg.Wait()
 
-	var infos []*provider.ResourceInfo
+	infos := []*provider.ResourceInfo{}
 	indirects := make(map[string][]*provider.ResourceInfo)
 	for i := range providers {
 		if errors[i] != nil {