Skip to content

Commit c296f1a

Browse files
ParthaICopilot
andauthored
Update aws/service.go
Co-authored-by: Copilot <[email protected]>
1 parent c37709e commit c296f1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aws/service.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ func BatchClient(ctx context.Context, d *plugin.QueryData) (*batch.Client, error
398398
if err != nil {
399399
return nil, err
400400
}
401+
if conf == nil {
402+
return nil, nil
403+
}
401404

402405
client := batch.NewFromConfig(*conf)
403406
return client, nil

0 commit comments

Comments
 (0)