From 742d9735b39cf2dee6ecdfc8b011d8f978f46804 Mon Sep 17 00:00:00 2001 From: nate smith Date: Tue, 10 Sep 2019 16:47:24 -0500 Subject: [PATCH] be explicit about unreachable state in news.posts parsing --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 548ccc0..ceb0045 100644 --- a/main.go +++ b/main.go @@ -114,6 +114,8 @@ func getNews() (entries []newsEntry, err error) { } } else if inContent { current.Content += fmt.Sprintf("\n%v", strings.TrimSpace(newsLine)) + } else { + panic("news post parsing should never reach this point") } } return entries, nil