Skip to content

Commit

Permalink
fix(apple-silicon): return right type (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di authored Jan 29, 2025
1 parent ad2f1fb commit 04caf04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/applesilicon/v1alpha1/apple_silicon_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (s *API) WaitForPossibleDeletion(req *WaitForServerRequest, opts ...scw.Req
return server, nil
}

func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerRequest, opts ...scw.RequestOption) (*[]ServerPrivateNetwork, error) {
func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerRequest, opts ...scw.RequestOption) ([]*ServerPrivateNetwork, error) {
timeout := defaultTimeout
if req.Timeout != nil {
timeout = *req.Timeout
Expand Down Expand Up @@ -117,5 +117,5 @@ func (s *PrivateNetworkAPI) WaitForServerPrivateNetworks(req *WaitForServerReque
return nil, errors.Wrap(err, "waiting for server private network failed")
}

return serverPrivateNetworks.(*[]ServerPrivateNetwork), nil
return serverPrivateNetworks.([]*ServerPrivateNetwork), nil
}

0 comments on commit 04caf04

Please sign in to comment.