From 552898b93b3911ddbc83caabbbb7da2004b2d8ce Mon Sep 17 00:00:00 2001 From: Antoon P Date: Tue, 16 May 2023 10:47:38 +0200 Subject: [PATCH] Lint fix --- internal/grpc/services/ocmshareprovider/ocmshareprovider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/grpc/services/ocmshareprovider/ocmshareprovider.go b/internal/grpc/services/ocmshareprovider/ocmshareprovider.go index a250289981..88e11393d9 100644 --- a/internal/grpc/services/ocmshareprovider/ocmshareprovider.go +++ b/internal/grpc/services/ocmshareprovider/ocmshareprovider.go @@ -228,7 +228,7 @@ func (s *service) getDataTransferProtocol(ctx context.Context, share *ocm.Share) path := statRes.GetInfo().Path err = s.walk(ctx, path, func(path string, info *providerpb.ResourceInfo, err error) error { if info.Type == providerpb.ResourceType_RESOURCE_TYPE_FILE { - size = size + uint64(info.Size) + size += info.Size } return nil }) @@ -237,11 +237,11 @@ func (s *service) getDataTransferProtocol(ctx context.Context, share *ocm.Share) } return &ocmd.Datatx{ SourceURI: s.webdavURL(ctx, share), - Size: uint64(size), + Size: size, } } -// walk traverses the path recursively to discover all resources in the tree +// walk traverses the path recursively to discover all resources in the tree. func (s *service) walk(ctx context.Context, path string, fn walker.WalkFunc) error { return s.walker.Walk(ctx, path, fn) }