diff --git a/internal/common/states_test.go b/internal/common/states_test.go index d5f7057eb..d8bfba16a 100644 --- a/internal/common/states_test.go +++ b/internal/common/states_test.go @@ -9,16 +9,16 @@ import ( func TestJSONConversions(t *testing.T) { type TestJson struct { Ibs ImageBuildState `json:"ibs"` - Cs ComposeState `json:"cs"` + Cs ComposeState `json:"cs"` } typedCases := []TestJson{ { Ibs: IBWaiting, - Cs: CWaiting, + Cs: CWaiting, }, { Ibs: IBRunning, - Cs: CFailed, + Cs: CFailed, }, } strCases := []string{ @@ -55,5 +55,5 @@ func TestJSONConversions(t *testing.T) { t.Error("Unmarshaled compose request is not the one expected") } } - + } diff --git a/internal/compose/compose_test.go b/internal/compose/compose_test.go index 2fcd5df42..21f86440e 100644 --- a/internal/compose/compose_test.go +++ b/internal/compose/compose_test.go @@ -6,8 +6,8 @@ import ( ) func TestGetState(t *testing.T) { - cases := []struct{ - compose Compose + cases := []struct { + compose Compose expecedStatus common.ComposeState }{ { @@ -121,5 +121,5 @@ func TestGetState(t *testing.T) { if got != wanted { t.Error("Compose", n, "should be in", wanted.ToString(), "state, but it is:", got.ToString()) } - } -} \ No newline at end of file + } +} diff --git a/internal/rcm/api.go b/internal/rcm/api.go index aecdf9c14..f319fba53 100644 --- a/internal/rcm/api.go +++ b/internal/rcm/api.go @@ -80,7 +80,7 @@ func (api *API) submit(writer http.ResponseWriter, request *http.Request, _ http } type Repository struct { - URL string `json:"url"` + URL string `json:"url"` } // JSON structure expected from the client