remove redundant bool arg

This commit is contained in:
adman
2026-04-20 23:38:02 +02:00
parent 8de34dfda1
commit dc04fdc7d0
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -36,15 +36,15 @@ func NewFormat(name string, opts ...Option) *Format {
type Option func(*Format)
func WithRequireAll(require bool) Option {
func WithRequireAll() Option {
return func(f *Format) {
f.requireAll = require
f.requireAll = true
}
}
func WithErrorOnExtra(errorOnExtra bool) Option {
func WithErrorOnExtra() Option {
return func(f *Format) {
f.errorOnExtra = errorOnExtra
f.errorOnExtra = true
}
}