containerized-data-importer icon indicating copy to clipboard operation
containerized-data-importer copied to clipboard

Use ptr instead of pointer and update code that now can use ptr as well

Open avlitman opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe: In this pr: https://github.com/kubevirt/containerized-data-importer/pull/3009 I needed to upgrade pointer to ptr, I replaced the parts usinf directly pointer. Now as a next step we can reduce code in other places by using ptr.

Describe the solution you'd like: like here: image (1)

And @nunnatsa started a tool to identify the places in the code we need to update: https://github.com/nunnatsa/redundantptr

Describe alternatives you've considered: The current state is an alternative but we prefer to reduce code .

Additional context: This issue discussed with @akalenyu.

avlitman avatar Dec 27 '23 09:12 avlitman