Commit 02d13617 authored by Shawn Smith's avatar Shawn Smith

Fix unused fmt.Errorf result

parent 738f403e
...@@ -44,8 +44,7 @@ func numericPriority(pod *api.Pod, podLister PodLister, minionLister MinionListe ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment