aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-18 01:22:52 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-18 01:22:52 +0200
commit6fd4c94223524536ed9514e18186a85840b6cf95 (patch)
tree313d31dfb9752d4d02cf2e07121fffa05d5dfe39 /internal
parent30f797a8c789e1337968a940ac8794517eef73f1 (diff)
downloadfeed2imap-go-6fd4c94223524536ed9514e18186a85840b6cf95.tar.gz
feed2imap-go-6fd4c94223524536ed9514e18186a85840b6cf95.tar.bz2
feed2imap-go-6fd4c94223524536ed9514e18186a85840b6cf95.zip
Fix dup key detection
Diffstat (limited to 'internal')
-rw-r--r--internal/config/yaml.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/config/yaml.go b/internal/config/yaml.go
index aa58685..f292f90 100644
--- a/internal/config/yaml.go
+++ b/internal/config/yaml.go
@@ -2,6 +2,7 @@ package config
import (
"fmt"
+
"gopkg.in/yaml.v3"
)
@@ -72,7 +73,7 @@ func buildFeeds(cfg []configGroupFeed, target string, feeds Feeds) error {
case f.isFeed():
name := f.Feed.Name
- if _, ok := feeds[name]; !ok {
+ if _, ok := feeds[name]; ok {
return fmt.Errorf("Duplicate Feed Name '%s'", name)
}
f.Feed.Target = target