Check should not be called every time the feed is created because it can be costly

This commit is contained in:
Jason Streifling 2024-10-15 15:08:23 +02:00
parent 83962a0341
commit 64a2d6b583

View File

@ -161,10 +161,6 @@ func (f *Feed) AddExtension(name string, value any) {
}
func (f *Feed) ToXML(encoding string) (string, error) {
if err := f.Check(); err != nil {
return "", fmt.Errorf("error checking feed: %v", err)
}
xml, err := xml.MarshalIndent(f, "", " ")
if err != nil {
return "", fmt.Errorf("error xml encoding feed: %v", err)