Skip to content

Commit 6dd947e

Browse files
committed
fix linting issues
1 parent 7b03978 commit 6dd947e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/controllers/scheduler/schedule_helper.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ func (sr *internalSchedulingResult) addRequest(ctx context.Context, req *Schedul
168168
var chosenPair *pairs.Pair[*clustersv1alpha1.Cluster, int]
169169
if len(availableClustersCap) > 0 {
170170
// choose a cluster using the configured strategy
171-
strat := strategy.FromConfig[*pairs.Pair[*clustersv1alpha1.Cluster, int]](stratKey)
172-
log.Debug("Fitting clusters available, choosing one according to strategy", "availableClusters", len(availableClustersCap), "strategy", strat.Name())
171+
strat := strategy.FromConfig[*pairs.Pair[*clustersv1alpha1.Cluster, int]](stratKey) //nolint:misspell
172+
log.Debug("Fitting clusters available, choosing one according to strategy", "availableClusters", len(availableClustersCap), "strategy", strat.Name()) //nolint:misspell
173173
var err error
174-
chosenPair, err = strat.Choose(ctx, availableClustersCap, func(p *pairs.Pair[*clustersv1alpha1.Cluster, int]) *clustersv1alpha1.Cluster {
174+
chosenPair, err = strat.Choose(ctx, availableClustersCap, func(p *pairs.Pair[*clustersv1alpha1.Cluster, int]) *clustersv1alpha1.Cluster { //nolint:misspell
175175
return p.Key
176176
}, cDef, req.IsPreemptive())
177177
if err != nil {

0 commit comments

Comments
 (0)