chore: guard on nil
This commit is contained in:
@@ -182,7 +182,9 @@ func (r *HTWriter) WriteTo(w io.Writer) (int64, error) {
|
|||||||
}
|
}
|
||||||
subject := ""
|
subject := ""
|
||||||
if s := twt.Subject(); s != nil {
|
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, `
|
i, err = fmt.Fprintf(w, `
|
||||||
<article>
|
<article>
|
||||||
|
|||||||
Reference in New Issue
Block a user