openebs / velero-plugin

Velero plugin for backup/restore of OpenEBS cStor volumes
https://docs.openebs.io
Apache License 2.0
63 stars 32 forks source link

(bugbash) style(zfspv): Removing redundant pieces of code #160

Closed rahulgrover99 closed 3 years ago

rahulgrover99 commented 3 years ago

Signed-off-by: Rahul Grover rahulgrover99@gmail.com

Why is this PR required? What issue does it fix?: Improves code quality. Removes S1005 (Drop unnecessary use of the blank identifier) and opt.semgrep.err-nil-check

What this PR does?: It removes superfluous nil err check before return and unnecessary assignment to the blank identifier.

Does this PR require any upgrade changes?: No

If the changes in this PR are manually verified, list down the scenarios covered and commands you used for testing with logs: NA

Any additional information for your reviewer?: Mention if this PR is part of any design or a continuation of previous PRs NA