From 79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 24 Apr 2022 18:53:32 +0200 Subject: Replace `interface{}` by `any` --- pkg/config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/config/config.go') diff --git a/pkg/config/config.go b/pkg/config/config.go index a580337..a7c540f 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -13,7 +13,7 @@ import ( // Map is a convenience type for the non-mapped configuration options // Mostly used for legacy options -type Map map[string]interface{} +type Map map[string]any // GlobalOptions are not feed specific type GlobalOptions struct { @@ -108,12 +108,12 @@ func (cfg *Config) Validate() error { // WithPartText marks whether 'text' part should be included in mails func (opt GlobalOptions) WithPartText() bool { - return util.StrContains(opt.Parts, "text") + return util.Contains(opt.Parts, "text") } // WithPartHtml marks whether 'html' part should be included in mails func (opt GlobalOptions) WithPartHtml() bool { - return util.StrContains(opt.Parts, "html") + return util.Contains(opt.Parts, "html") } // Load configuration from file and validate it -- cgit v1.2.3-70-g09d2