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 f5e772d commit ee0a3ff
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.Errorf("%s", msg)
}

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.Errorf("%s", event.Message)
}
}

Expand Down

0 comments on commit ee0a3ff

Please sign in to comment.