Skip to content

Commit 856f764

Browse files
committed
Yet another linter fix
1 parent 21213bf commit 856f764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cache/queue/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ func (m *Manager) AddOrUpdateWorkload(w *kueue.Workload, opts ...workload.InfoOp
441441

442442
func (m *Manager) AddOrUpdateWorkloadWithoutLock(w *kueue.Workload, opts ...workload.InfoOption) error {
443443
if !workload.IsActive(w) {
444-
return fmt.Errorf("workload %q is inactive and can't be added to a LocalQueue", w.ObjectMeta.Name)
444+
return fmt.Errorf("workload %q is inactive and can't be added to a LocalQueue", w.Name)
445445
}
446446
if workload.HasQuotaReservation(w) {
447-
return fmt.Errorf("workload %q already has quota reserved and can't be added to a LocalQueue", w.ObjectMeta.Name)
447+
return fmt.Errorf("workload %q already has quota reserved and can't be added to a LocalQueue", w.Name)
448448
}
449449
qKey := queue.KeyFromWorkload(w)
450450
q := m.localQueues[qKey]

0 commit comments

Comments
 (0)