Skip to content

Commit

Permalink
tests: fix linter-detected problem with error handling
Browse files Browse the repository at this point in the history
A small cleanup to keep the linter happier.
  • Loading branch information
justinsb committed Dec 4, 2024
1 parent 6dfbd46 commit 50ce4a9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nodeup/pkg/model/kubelet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,6 @@ func runKubeletBuilder(t *testing.T, context *fi.NodeupModelBuilderContext, node

{
task := builder.buildSystemdService()
if err != nil {
t.Fatalf("error from KubeletBuilder buildSystemdService: %v", err)
return
}
context.AddTask(task)
}
}
Expand All @@ -250,8 +246,7 @@ func BuildNodeupModelContext(model *testutils.Model) (*NodeupModelContext, error
return nil, fmt.Errorf("error from BuildCloud: %v", err)
}

err = cloudup.PerformAssignments(model.Cluster, vfs.Context, cloud)
if err != nil {
if err := cloudup.PerformAssignments(model.Cluster, vfs.Context, cloud); err != nil {
return nil, fmt.Errorf("error from PerformAssignments: %v", err)
}

Expand Down

0 comments on commit 50ce4a9

Please sign in to comment.