We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fcb67 commit 12c3608Copy full SHA for 12c3608
submit.go
@@ -117,10 +117,8 @@ func main() {
117
log.Fatalf("Job configuration must be a json or hjson file and is currently: %s", *args.JobConfig)
118
}
119
120
- } else {
121
- if !strings.HasSuffix(*args.JobConfig, ".json") && !strings.HasSuffix(*args.JobConfig, ".hjson") {
122
- log.Fatalf("Job configuration must be a json or hjson file and is currently: %s", *args.JobConfig)
123
- }
+ } else if !strings.HasSuffix(*args.JobConfig, ".json") && !strings.HasSuffix(*args.JobConfig, ".hjson") {
+ log.Fatalf("Job configuration must be a json or hjson file and is currently: %s", *args.JobConfig)
124
125
126
0 commit comments