Changed the loop as now we are looping over a map and not a slice.

This commit is contained in:
Abhishek Jain 2017-03-23 22:13:29 -04:00
parent 710447cb0d
commit f85ed944f4
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ func TasksFromJSON(uri string) ([]Task, error) {
func (tsk *Task) UpdateHost(newHost string) bool {
// Validation
isCorrectHost := false
for _, existingHost := range constants.Hosts {
for existingHost, _ := range constants.Hosts {
if newHost == existingHost {
isCorrectHost = true
}