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/deprecated.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 '')
-rw-r--r-- | pkg/config/deprecated.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/config/deprecated.go b/pkg/config/deprecated.go index 44ed6f6..f373d5e 100644 --- a/pkg/config/deprecated.go +++ b/pkg/config/deprecated.go @@ -8,7 +8,7 @@ import ( type deprecated struct { msg string - handle func(interface{}, *GlobalOptions, *Options) + handle func(any, *GlobalOptions, *Options) } var unsupported = deprecated{ @@ -21,7 +21,7 @@ var deprecatedOpts = map[string]deprecated{ "debug-updated": {"Use '-d' as option instead.", nil}, "execurl": {"Use 'exec' instead.", nil}, "filter": {"Use 'item-filter' instead.", nil}, - "disable-ssl-verification": {"Interpreted as 'tls-no-verify'.", func(i interface{}, global *GlobalOptions, opts *Options) { + "disable-ssl-verification": {"Interpreted as 'tls-no-verify'.", func(i any, global *GlobalOptions, opts *Options) { if val, ok := i.(bool); ok { if val && !opts.NoTLS { // do not overwrite the set NoTLS flag! @@ -33,7 +33,7 @@ var deprecatedOpts = map[string]deprecated{ }}, } -func handleDeprecated(option string, value interface{}, feed string, global *GlobalOptions, opts *Options) bool { +func handleDeprecated(option string, value any, feed string, global *GlobalOptions, opts *Options) bool { dep, ok := deprecatedOpts[option] if !ok { return false |