aboutsummaryrefslogtreecommitdiff
path: root/internal/yaml
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-20 18:45:43 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-20 18:45:43 +0200
commitafe2c4919dc2ded2f3b7d796b914dd66fbe78e64 (patch)
treefebdd45c23807fa1e9c22078b7927cd39956f308 /internal/yaml
parent47fa4464d7cf028dd871d48bf6472d97f60b4a79 (diff)
downloadfeed2imap-go-afe2c4919dc2ded2f3b7d796b914dd66fbe78e64.tar.gz
feed2imap-go-afe2c4919dc2ded2f3b7d796b914dd66fbe78e64.tar.bz2
feed2imap-go-afe2c4919dc2ded2f3b7d796b914dd66fbe78e64.zip
Fixes and validation
Diffstat (limited to '')
-rw-r--r--internal/yaml/yaml.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/yaml/yaml.go b/internal/yaml/yaml.go
index 3317f5d..207adab 100644
--- a/internal/yaml/yaml.go
+++ b/internal/yaml/yaml.go
@@ -128,5 +128,8 @@ func Load(path string) (C.Config, F.Feeds, error) {
return C.Config{}, nil, fmt.Errorf("while parsing: %w", err)
}
- return C.Config{GlobalConfig: parsedCfg.GlobalConfig}, feeds, nil
+ return C.Config{
+ GlobalOptions: parsedCfg.GlobalOptions,
+ GlobalConfig: parsedCfg.GlobalConfig,
+ }, feeds, nil
}