mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #8033 from shawnps/patch-6
Fix unused fmt.Errorf result
This commit is contained in:
commit
01457a92af
@ -44,8 +44,7 @@ func numericPriority(pod *api.Pod, podLister PodLister, minionLister MinionListe
|
||||
result := []HostPriority{}
|
||||
|
||||
if err != nil {
|
||||
fmt.Errorf("failed to list nodes: %v", err)
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("failed to list nodes: %v", err)
|
||||
}
|
||||
for _, minion := range nodes.Items {
|
||||
score, err := strconv.Atoi(minion.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user