chore: guard on nil

This commit is contained in:
xuu 2025-04-04 11:56:18 -06:00
parent f52827d62a
commit 922a1b1327
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F

View File

@ -182,7 +182,9 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) {
}
subject := ""
if s := twt.Subject(); s != nil {
subject = s.Tag().Text()
if tag, ok := s.Tag().(*lextwt.Tag); ok {
subject = tag.Text()
}
}
i, err = fmt.Fprintf(w, `
<article>