aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-05-11 01:36:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-05-11 01:36:31 +0200
commit7ab63d74ce88c20d0550767ef01f50237ad92778 (patch)
tree40e602baabffa3a940465e5f6425e9ad8809cb67 /pkg
parent1031949a98b8c43ec9fc99f8f23240e8644f5e6b (diff)
downloadfeed2imap-go-7ab63d74ce88c20d0550767ef01f50237ad92778.tar.gz
feed2imap-go-7ab63d74ce88c20d0550767ef01f50237ad92778.tar.bz2
feed2imap-go-7ab63d74ce88c20d0550767ef01f50237ad92778.zip
Small style improvement
Diffstat (limited to 'pkg')
-rw-r--r--pkg/config/deprecated.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/config/deprecated.go b/pkg/config/deprecated.go
index becc9fb..44ed6f6 100644
--- a/pkg/config/deprecated.go
+++ b/pkg/config/deprecated.go
@@ -22,8 +22,7 @@ var deprecatedOpts = map[string]deprecated{
"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) {
- val, ok := i.(bool)
- if ok {
+ if val, ok := i.(bool); ok {
if val && !opts.NoTLS {
// do not overwrite the set NoTLS flag!
opts.NoTLS = val