diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-25 17:54:41 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-25 17:54:41 +0200 |
commit | 5886c4396c7e24c8d86c0f18c2e7215f792e25fb (patch) | |
tree | 94f4bf00679cee58f59a78f9316459daf035dac9 /main.go | |
parent | 60ff245e6d965785d54a212b2a4ddd9b16159460 (diff) | |
download | feed2imap-go-5886c4396c7e24c8d86c0f18c2e7215f792e25fb.tar.gz feed2imap-go-5886c4396c7e24c8d86c0f18c2e7215f792e25fb.tar.bz2 feed2imap-go-5886c4396c7e24c8d86c0f18c2e7215f792e25fb.zip |
Shortcut: do nothing, if there is no feed left
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -68,6 +68,11 @@ func run() error { state.RemoveUndue() + if state.NumFeeds() == 0 { + // nothing to do + return nil + } + if success := state.Fetch(); success == 0 { return fmt.Errorf("No successfull feed fetch.") } |