diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-29 10:54:32 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-29 10:54:32 +0100 |
commit | 503fa62794ccca8e27cde99f3fbabf41adad5f3f (patch) | |
tree | b5f33d4df92521ffc257668ecf31cbcb5ad35a22 /pkg/config/body.go | |
parent | 0833f21bb79425d090fe9830bc6ea6fc9a065f4b (diff) | |
download | feed2imap-go-503fa62794ccca8e27cde99f3fbabf41adad5f3f.tar.gz feed2imap-go-503fa62794ccca8e27cde99f3fbabf41adad5f3f.tar.bz2 feed2imap-go-503fa62794ccca8e27cde99f3fbabf41adad5f3f.zip |
Replace util.Contains with slices.Contains
Diffstat (limited to 'pkg/config/body.go')
-rw-r--r-- | pkg/config/body.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/config/body.go b/pkg/config/body.go index 17cf924..68c06da 100644 --- a/pkg/config/body.go +++ b/pkg/config/body.go @@ -2,10 +2,9 @@ package config import ( "fmt" + "slices" "gopkg.in/yaml.v3" - - "github.com/Necoro/feed2imap-go/pkg/util" ) type Body string @@ -22,7 +21,7 @@ func (b *Body) UnmarshalYAML(node *yaml.Node) error { val = "default" } - if !util.Contains(validBody, val) { + if !slices.Contains(validBody, val) { return TypeError("line %d: Invalid value for 'body': %q", node.Line, val) } |