Skip to content

Commit

Permalink
providers/supermicro/supermicro.go: Explain why we return nil in NewC…
Browse files Browse the repository at this point in the history
…lient()
  • Loading branch information
splaspood committed Oct 29, 2024
1 parent 9705c04 commit 0a6db1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/supermicro/supermicro.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ func NewClient(host, user, pass string, log logr.Logger, opts ...Option) *Client
httpclient.Build(defaultConfig.httpClientSetupFuncs...),
)

// We probably want to treat this as a fatal error and/or pass the error back to the caller
// I did not want to chase that thread atm, so we intentionally return nil here if
// newBmcServiceClient returns an error.
if err != nil {
return nil
}
Expand Down

0 comments on commit 0a6db1f

Please sign in to comment.