Skip to content

Commit 8bf0bbd

Browse files
committed
air: close preflight validation response
1 parent 675c49b commit 8bf0bbd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cmd/air/validateconfig.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func validateConfigOnce(ctx context.Context, w *databricks.WorkspaceClient, cfg
141141
if err != nil {
142142
return fmt.Errorf("failed to validate config: %w", err)
143143
}
144+
defer resp.Body.Close()
144145
responseBody, err := common.NewResponseWrapper(resp, requestBody)
145146
if err != nil {
146147
err = fmt.Errorf("failed to validate config: %w", err)

0 commit comments

Comments
 (0)