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:
parent
1bdaf5854a
commit
655b8f4db1
2 changed files with 25 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue