Skip to content

Commit 79447ab

Browse files
committed
Added linter directives
Signed-off-by: michaelawyu <[email protected]>
1 parent 10f7f21 commit 79447ab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pkg/scheduler/scheduler.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ func (s *Scheduler) scheduleOnce(ctx context.Context, worker int) {
228228
}
229229

230230
// Requeue if the scheduling cycle suggests so.
231-
if res.Requeue { //nolint:golint //no lint SA1019 we need more time to fully migrate to RequeueAfter as we used these two fields separately.
231+
//nolint:staticcheck
232+
//lint:ignore SA1019 we need more time to fully migrate to RequeueAfter as we used these two fields separately.
233+
if res.Requeue {
232234
if res.RequeueAfter > 0 {
233235
s.queue.AddAfter(placementKey, res.RequeueAfter)
234236
observeSchedulingCycleMetrics(cycleStartTime, false, true)

pkg/utils/controller/controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ func (w *controller) reconcileHandler(ctx context.Context, key interface{}) {
284284
w.queue.Forget(key)
285285
w.queue.AddAfter(key, result.RequeueAfter)
286286
metrics.FleetReconcileTotal.WithLabelValues(w.name, labelRequeueAfter).Inc()
287-
case result.Requeue: //nolint:golint // SA1019 we need more time to fully migrate to RequeueAfter as we used these two fields separately.
287+
//nolint:staticcheck
288+
//lint:ignore SA1019 we need more time to fully migrate to RequeueAfter as we used these two fields separately.
289+
case result.Requeue:
288290
w.queue.AddRateLimited(key)
289291
metrics.FleetReconcileTotal.WithLabelValues(w.name, labelRequeue).Inc()
290292
default:

0 commit comments

Comments
 (0)