diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-04-24 18:53:32 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2022-04-24 18:53:32 +0200 |
commit | 79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 (patch) | |
tree | cbfd034a362666b8dab842d3afed18cf95124ede /pkg/config/body.go | |
parent | 7822c9d443458ae9d1d9d678e279bfc516da7a8f (diff) | |
download | feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.gz feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.bz2 feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.zip |
Replace `interface{}` by `any`
Diffstat (limited to 'pkg/config/body.go')
-rw-r--r-- | pkg/config/body.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/config/body.go b/pkg/config/body.go index 3b2f676..17cf924 100644 --- a/pkg/config/body.go +++ b/pkg/config/body.go @@ -22,7 +22,7 @@ func (b *Body) UnmarshalYAML(node *yaml.Node) error { val = "default" } - if !util.StrContains(validBody, val) { + if !util.Contains(validBody, val) { return TypeError("line %d: Invalid value for 'body': %q", node.Line, val) } @@ -30,6 +30,6 @@ func (b *Body) UnmarshalYAML(node *yaml.Node) error { return nil } -func TypeError(format string, v ...interface{}) *yaml.TypeError { +func TypeError(format string, v ...any) *yaml.TypeError { return &yaml.TypeError{Errors: []string{fmt.Sprintf(format, v...)}} } |