Fix unused fmt.Errorf result

This commit is contained in:
Shawn Smith 2015-05-10 13:17:00 +09:00
parent 738f403eea
commit 02d136173a

View File

@ -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)