Skip to content

Commit

Permalink
Add missing check in gnostic validateOptions(). (#296)
Browse files Browse the repository at this point in the history
Found and suggested by @hojongs
  • Loading branch information
timburks authored Jan 22, 2022
1 parent 24f005e commit 8f951e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/gnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ func (g *Gnostic) validateOptions() error {
g.yamlOutputPath == "" &&
g.jsonOutputPath == "" &&
g.errorOutputPath == "" &&
g.messageOutputPath == "" &&
len(g.pluginCalls) == 0 {
return NewUsageError("missing output directives")
}
Expand Down

0 comments on commit 8f951e5

Please sign in to comment.