Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Unchecked Inline error in packetmachine_controller.go #622

@cprivitere

Description

@cprivitere

https://github.com/kubernetes-sigs/cluster-api-provider-packet/blob/e9c2ee01764ec66a6209cb9bf76bbfcdc83017ca/controllers/packetmachine_controller.go#L313

This error check isn't checking the actual variable that has the error info in it. The "err" in the line should be changed to "patchErr"

(Found while testing the .golancci.yaml from upstream, so I'll be adding an issue to update our .golangci.yaml...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions