mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Fix unused fmt.Errorf result
This commit is contained in:
parent
738f403eea
commit
02d136173a
@ -44,8 +44,7 @@ func numericPriority(pod *api.Pod, podLister PodLister, minionLister MinionListe
|
|||||||
result := []HostPriority{}
|
result := []HostPriority{}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Errorf("failed to list nodes: %v", err)
|
return nil, fmt.Errorf("failed to list nodes: %v", err)
|
||||||
return nil, err
|
|
||||||
}
|
}
|
||||||
for _, minion := range nodes.Items {
|
for _, minion := range nodes.Items {
|
||||||
score, err := strconv.Atoi(minion.Name)
|
score, err := strconv.Atoi(minion.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user