From cd644bbf691a226172a7106aec05d009f7e03d4e Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Tue, 15 Nov 2016 15:11:00 -0500 Subject: [PATCH] Formatted the code --- def/task.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/def/task.go b/def/task.go index c7326c6..63668ad 100644 --- a/def/task.go +++ b/def/task.go @@ -17,7 +17,7 @@ type Task struct { CMD string `json:"cmd"` Instances *int `json:"inst"` Host string `json:"host"` - TaskID string `json:"taskID"` + TaskID string `json:"taskID"` } func TasksFromJSON(uri string) ([]Task, error) { @@ -42,10 +42,10 @@ func (tsk *Task) UpdateHost(new_host string) bool { // Validation is_correct_host := false for _, existing_host := range constants.Hosts { - if new_host == existing_host { - is_correct_host = true - } - } + if new_host == existing_host { + is_correct_host = true + } + } if !is_correct_host { return false } else {