We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a6e03 commit 793e1c5Copy full SHA for 793e1c5
pkg/fleetcontrol/fleetcontrol_configurations.go
@@ -84,7 +84,9 @@ func (a *Fleetcontrol) FleetControlGetConfigurationWithContext(
84
if err != nil {
85
return nil, fmt.Errorf("failed to make request: %w", err)
86
}
87
- defer httpResp.Body.Close()
+ defer func() {
88
+ _ = httpResp.Body.Close()
89
+ }()
90
91
// Check for error status codes
92
if httpResp.StatusCode != http.StatusOK {
@@ -199,7 +201,7 @@ type CreateConfigurationResponse struct {
199
201
200
202
type GetConfigurationResponse string
203
-type GetConfigurationVersionsResponse struct{
204
+type GetConfigurationVersionsResponse struct {
205
Versions []ConfigurationVersion `json:"versions"`
206
Cursor *string `json:"cursor"`
207
0 commit comments