Skip to content

Commit 53336e1

Browse files
authored
Fix lint issue reported by fatcontext (#2485)
1 parent e5a73fb commit 53336e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎.golangci.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ linters:
3131
- copyloopvar
3232
- dupword
3333
- durationcheck
34+
- fatcontext
3435
- ginkgolinter
3536
- gocritic
3637
- goimports

‎pkg/controller/core/workload_controller.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ func (w *workloadQueueHandler) queueReconcileForWorkloadsOfClusterQueue(ctx cont
944944
}
945945
for _, lq := range lst.Items {
946946
log := log.WithValues("localQueue", klog.KObj(&lq))
947-
ctx = ctrl.LoggerInto(ctx, log)
947+
ctx := ctrl.LoggerInto(ctx, log)
948948
w.queueReconcileForWorkloadsOfLocalQueue(ctx, &lq, wq)
949949
}
950950
}

0 commit comments

Comments
 (0)