Skip to content

Commit 35af1e9

Browse files
committed
enable fatcontext
On-behalf-of: @SAP [email protected]
1 parent 824d91d commit 35af1e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ linters:
1414
- durationcheck
1515
- errcheck
1616
- errchkjson
17+
- fatcontext
1718
- gocritic
1819
- godot
1920
- goprintffuncname

pkg/reconciler/apis/apibindingdeletion/apibinding_deletor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ func (c *Controller) deleteAllCRs(ctx context.Context, apibinding *apisv1alpha2.
6666
}
6767

6868
logger = logger.WithValues("gvr", gvr.String())
69-
ctx = klog.NewContext(ctx, logger)
70-
deletionMetadata, err := c.deleteAllCR(ctx, logicalcluster.From(apibinding), gvr)
69+
versionCtx := klog.NewContext(ctx, logger)
70+
deletionMetadata, err := c.deleteAllCR(versionCtx, logicalcluster.From(apibinding), gvr)
7171
if err != nil {
7272
deleteContentErrs = append(deleteContentErrs, err)
7373
}

0 commit comments

Comments
 (0)