be explicit about unreachable state in news.posts parsing
parent
defacb9f58
commit
742d9735b3
2
main.go
2
main.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue