From 5886c4396c7e24c8d86c0f18c2e7215f792e25fb Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 25 Apr 2020 17:54:41 +0200 Subject: Shortcut: do nothing, if there is no feed left --- internal/feed/state.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/feed') diff --git a/internal/feed/state.go b/internal/feed/state.go index 8efef5e..2a0a1e1 100644 --- a/internal/feed/state.go +++ b/internal/feed/state.go @@ -82,3 +82,7 @@ func (state *State) RemoveUndue() { } } } + +func (state *State) NumFeeds() int { + return len(state.feeds) +} -- cgit v1.2.3-54-g00ecf