Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Jul 10, 2024
1 parent 5a0302a commit b4d154c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kardinal-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b4d154c

Please sign in to comment.