Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 12e611a

Browse files
committed
Use ctx instead of TODO
Signed-off-by: Andy Goldstein <[email protected]>
1 parent 8a06878 commit 12e611a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func restConfigForAPIExport(ctx context.Context, cfg *rest.Config, apiExportName
180180
} else {
181181
setupLog.Info("api-export-name is empty - listing")
182182
exports := &apisv1alpha1.APIExportList{}
183-
if err := apiExportClient.List(context.TODO(), exports); err != nil {
183+
if err := apiExportClient.List(ctx, exports); err != nil {
184184
return nil, fmt.Errorf("error listing APIExports: %w", err)
185185
}
186186
if len(exports.Items) == 0 {

0 commit comments

Comments
 (0)