be explicit about unreachable state in news.posts parsing

master
nate smith 2019-09-10 16:47:24 -05:00
parent defacb9f58
commit 742d9735b3
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ func getNews() (entries []newsEntry, err error) {
} }
} else if inContent { } else if inContent {
current.Content += fmt.Sprintf("\n%v", strings.TrimSpace(newsLine)) current.Content += fmt.Sprintf("\n%v", strings.TrimSpace(newsLine))
} else {
panic("news post parsing should never reach this point")
} }
} }
return entries, nil return entries, nil