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:
parent
89307010ad
commit
6618caca81
2 changed files with 91 additions and 112 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue