Skip to content

Commit 12c3608

Browse files
committed
Fixing lint error
Signed-off-by: Gael Leblan <[email protected]>
1 parent a7fcb67 commit 12c3608

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

submit.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,8 @@ func main() {
117117
log.Fatalf("Job configuration must be a json or hjson file and is currently: %s", *args.JobConfig)
118118
}
119119

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-
}
120+
} else if !strings.HasSuffix(*args.JobConfig, ".json") && !strings.HasSuffix(*args.JobConfig, ".hjson") {
121+
log.Fatalf("Job configuration must be a json or hjson file and is currently: %s", *args.JobConfig)
124122
}
125123
}
126124

0 commit comments

Comments
 (0)