opts should not be a pointer

This commit is contained in:
Yann Hamon 2020-11-14 15:57:39 +01:00
parent 649c2ca4d6
commit 9936e43d47
3 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ func realMain() int {
return 1
}
v := validator.New(cfg.SchemaLocations, &validator.Opts{
v := validator.New(cfg.SchemaLocations, validator.Opts{
SkipTLS: cfg.SkipTLS,
SkipKinds: cfg.SkipKinds,
RejectKinds: cfg.RejectKinds,