avoid empty strings

master
Ted Unangst 4 years ago
parent 5af0737506
commit 0b38c46d37

@ -298,6 +298,9 @@ func grapevine(mentions []Mention) []string {
func grapeape(s string) []Mention {
var mentions []Mention
for _, m := range strings.Split(s, " ") {
if m == "" {
continue
}
where := gofish(m)
if where != "" {
mentions = append(mentions, Mention{Who: m, Where: where})

Loading…
Cancel
Save