From 5886c4396c7e24c8d86c0f18c2e7215f792e25fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 25 Apr 2020 17:54:41 +0200 Subject: Shortcut: do nothing, if there is no feed left --- main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index e63b883..415d19f 100644 --- a/main.go +++ b/main.go @@ -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.") } -- cgit v1.2.3