Skip to content

fix(BackingImage): use Spec.DiskFileSpecMap as useddisks when getting…

codefactor.io / CodeFactor succeeded Jul 1, 2024 in 9s

50 issues fixed. 3 issues found.

Annotations

Check notice on line 356 in controller/backing_image_controller.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

controller/backing_image_controller.go#L356

If block ends with a return statement, so drop this else and outdent its block. (indent-error-flow)

Check notice on line 390 in controller/backing_image_controller.go

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

controller/backing_image_controller.go#L390

If block ends with a continue statement, so drop this else and outdent its block. (superfluous-else)

Check warning on line 74 in k8s/generate_code.sh

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

k8s/generate_code.sh#L74

Use 'find .. -print0 | xargs -0 ..' or 'find .. -exec .. +' to allow non-alphanumeric filenames. (SC2038)