  coord0, err := client.GetCoordinate(nodes[0])  if err != nil {   c.Ui.Error(fmt.Sprintf("Error getting coordinates: %s", err))   return 0  }  if coord0 == nil {   c.Ui.Error(fmt.Sprintf("Could not find a coordinate for node %q", nodes[0]))   return 0  }  coord0, err := client.GetCoordinate(nodes[0])  if err != nil {   c.Ui.Error(fmt.Sprintf("Error getting coordinates: %s", err))   return 0  }  if coord0 == nil {   c.Ui.Error(fmt.Sprintf("Could not find a coordinate for node %q", nodes[0]))   return 0  }  