Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Dec 12, 2024
1 parent 4bff82a commit 1203400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ccloud/ccloud_arc_agent_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func arcCCloudArcAgentV1WaitForAgent(ctx context.Context, arcClient *gophercloud
}

if len(msg) > 0 && msg != "active" {
return nil, fmt.Errorf(msg)
return nil, fmt.Error(msg)

Check failure on line 73 in ccloud/ccloud_arc_agent_v1.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: fmt.Error

Check failure on line 73 in ccloud/ccloud_arc_agent_v1.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: fmt.Error
}

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion ccloud/ccloud_kubernetes_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func kubernikusKlusterV1GetPhase(klient *kubernikus, target string, name string)
event := events.Payload[len(events.Payload)-1]

if strings.Contains(event.Reason, "Error") || strings.Contains(event.Reason, "Failed") {
return nil, event.Reason, fmt.Errorf(event.Message)
return nil, event.Reason, fmt.Error(event.Message)

Check failure on line 215 in ccloud/ccloud_kubernetes_v1.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: fmt.Error (typecheck)

Check failure on line 215 in ccloud/ccloud_kubernetes_v1.go

View workflow job for this annotation

GitHub Actions / Lint

undefined: fmt.Error) (typecheck)
}
}

Expand Down

0 comments on commit 1203400

Please sign in to comment.