aboutsummaryrefslogtreecommitdiff
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
parent30f797a8c789e1337968a940ac8794517eef73f1 (diff)
downloadfeed2imap-go-6fd4c94223524536ed9514e18186a85840b6cf95.tar.gz
feed2imap-go-6fd4c94223524536ed9514e18186a85840b6cf95.tar.bz2
feed2imap-go-6fd4c94223524536ed9514e18186a85840b6cf95.zip
Fix dup key detection
-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
-3/+0 2020-04-19Do not print the parsedCfg anymoreRené 'Necoro' Neumann1-1/+1 2020-04-19Increase go-version to 1.14René 'Necoro' Neumann1-2/+2 2020-04-19CI: go vetRené 'Necoro' Neumann1-0/+3 2020-04-19Fetching and parsing the feedsRené 'Necoro' Neumann5-4/+113 2020-04-19Ignore all config*.ymlRené 'Necoro' Neumann1-1/+1