Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antoonp committed May 16, 2023
1 parent 675e715 commit 0d34d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/grpc/services/ocmshareprovider/ocmshareprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 += uint64(info.Size)
}
return nil
})
Expand All @@ -237,7 +237,7 @@ func (s *service) getDataTransferProtocol(ctx context.Context, share *ocm.Share)
}
return &ocmd.Datatx{
SourceURI: s.webdavURL(ctx, share),
Size: uint64(size),
Size: size,
}
}

Expand Down

0 comments on commit 0d34d34

Please sign in to comment.