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

fix incorrect usage of formatted string

output probably unchanged, but now `go vet` is happy that formatted strings are not misused
This commit is contained in:
Marius Goetze 2025-09-08 13:10:50 +02:00
parent 187d114631
commit d1f33ab27d
3 changed files with 28 additions and 28 deletions

View file

@ -90,7 +90,7 @@ func TestParse(t *testing.T) {
cmd.Env = append(os.Environ(), "TEST_HELP=1")
err := cmd.Run()
if err != nil {
t.Fatalf(err.Error())
t.Fatal(err.Error())
}
// test the version flag
@ -104,7 +104,7 @@ func TestParse(t *testing.T) {
cmd.Env = append(os.Environ(), "TEST_VERSION=1")
err = cmd.Run()
if err != nil {
t.Fatalf(err.Error())
t.Fatal(err.Error())
}
}
@ -140,7 +140,7 @@ func TestLoadToml(t *testing.T) {
t.Errorf("Failure: Succeeded in parsing nonexistant parameter")
}
if err := loadTOML(&cfg, "data/config.toml"); err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
}