Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Mar 25, 2021
1 parent 075830c commit 219de7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/grpc/services/gateway/storageprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 219de7b

Please sign in to comment.