1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Use more idiomatic code for Atom parser

This commit is contained in:
Frédéric Guillot 2017-11-20 18:50:16 -08:00
parent 89307010ad
commit 6618caca81
2 changed files with 91 additions and 112 deletions

View file

@ -16,7 +16,7 @@ import (
// Parse returns a normalized feed struct from a Atom feed.
func Parse(data io.Reader) (*model.Feed, error) {
atomFeed := new(AtomFeed)
atomFeed := new(atomFeed)
decoder := xml.NewDecoder(data)
decoder.CharsetReader = charset.NewReaderLabel