aboutsummaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-10-17 17:27:34 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-10-18 18:36:04 +0200
commitf2996a1cb8eca70c97f5cd847c2c409a67083392 (patch)
treea6828351b68900fb47f28ee61c9590468081cfe1 /pkg/config
parentacd43c32925fbdfec6b9309aeec4fa43ed731938 (diff)
downloadfeed2imap-go-f2996a1cb8eca70c97f5cd847c2c409a67083392.tar.gz
feed2imap-go-f2996a1cb8eca70c97f5cd847c2c409a67083392.tar.bz2
feed2imap-go-f2996a1cb8eca70c97f5cd847c2c409a67083392.zip
Improve comment
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/yaml.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/config/yaml.go b/pkg/config/yaml.go
index 4716ce5..ad1acf7 100644
--- a/pkg/config/yaml.go
+++ b/pkg/config/yaml.go
@@ -191,6 +191,7 @@ func buildFeeds(cfg []configGroupFeed, target []string, feeds Feeds,
rawTarget := f.target(autoTarget)
if isRecognizedUrl(rawTarget) {
// deprecated old-style URLs as target
+ // as the full path is specified, `target` is ignored
if fTarget, err = handleUrlTarget(rawTarget, &f.Target, globalTarget); err != nil {
return err
}
@@ -268,6 +269,5 @@ func handleUrlTarget(targetStr string, targetNode *yaml.Node, globalTarget *Url)
globalTarget.BaseUrl())
}
- return url.RootPath(), // we are given the absolute path, so now appending trickery
- nil
+ return url.RootPath(), nil
}