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