diff --git a/kardinal-cli/cmd/root.go b/kardinal-cli/cmd/root.go index eeac1696..ab6701d2 100644 --- a/kardinal-cli/cmd/root.go +++ b/kardinal-cli/cmd/root.go @@ -193,10 +193,10 @@ func parseKubernetesManifestFile(kubernetesManifestFile string) ([]api_types.Ser manifest := string(fileBytes) // TODO: Check format of manifest file blocks := strings.Split(manifest, "---") - if len(blocks) % 2 != 0 { + if len(blocks)%2 != 0 { return nil, stacktrace.NewError("The manifest should contain pairs of service / deployment specifications") } - serviceConfigs := make([]api_types.ServiceConfig, len(blocks) / 2) + serviceConfigs := make([]api_types.ServiceConfig, len(blocks)/2) decode := scheme.Codecs.UniversalDeserializer().Decode for index, spec := range strings.Split(manifest, "---") { if len(spec) == 0 {