1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Be more rigid specifying format in config file.

This commit is contained in:
Sascha L. Teichmann 2023-07-25 11:32:18 +02:00
parent 1bdaf5854a
commit 655b8f4db1
2 changed files with 25 additions and 10 deletions

View file

@ -154,7 +154,7 @@ func (nc *nopCloser) Close() error { return nil }
// write defines where to write the report according to the "output" flag option.
// It calls also the "writeJSON" or "writeHTML" function according to the "format" flag option.
func (r *Report) write(format, output string) error {
func (r *Report) write(format outputFormat, output string) error {
var w io.WriteCloser