Skip to content

Commit fcecf13

Browse files
Update linter version, fix linting:
Signed-off-by: Jacob Weinstock <[email protected]>
1 parent d9fc042 commit fcecf13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ GO_INSTALL = ./scripts/go_install.sh
5151
# Binaries.
5252
CONTROLLER_GEN := go run sigs.k8s.io/controller-tools/cmd/[email protected]
5353

54-
GOLANGCI_LINT_VER := v1.61.0
54+
GOLANGCI_LINT_VER := v1.63.4
5555
GOLANGCI_LINT_BIN := golangci-lint
5656
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
5757

Diff for: controller/machine/scope.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (scope *machineReconcileScope) MachineScheduledForDeletion() bool {
197197
}
198198

199199
// DeleteMachineWithDependencies removes template and workflow objects associated with given machine.
200-
func (scope *machineReconcileScope) DeleteMachineWithDependencies() error {
200+
func (scope *machineReconcileScope) DeleteMachineWithDependencies() error { //nolint:cyclop
201201
scope.log.Info("Removing machine", "hardwareName", scope.tinkerbellMachine.Spec.HardwareName)
202202
// Fetch hw for the machine.
203203
hw := &tinkv1.Hardware{}
@@ -234,6 +234,7 @@ func (scope *machineReconcileScope) DeleteMachineWithDependencies() error {
234234
if err := scope.releaseHardware(hw); err != nil {
235235
return fmt.Errorf("error releasing Hardware: %w", err)
236236
}
237+
237238
return scope.removeFinalizer()
238239
}
239240

Diff for: controller/machine/tinkerbellmachine_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ func Test_Machine_reconciliation_workflow_complete(t *testing.T) {
582582
})
583583
}
584584

585-
//nolint:funlen
586585
func Test_Machine_reconciliation(t *testing.T) {
587586
t.Parallel()
588587

0 commit comments

Comments
 (0)