summaryrefslogtreecommitdiff
path: root/internal/reader/json/parser_test.go
diff options
context:
space:
mode:
authorGravatar jvoisin <julien.voisin@dustri.org> 2024-03-19 18:03:04 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-03-19 20:41:44 -0700
commit4be993e05537a2ed658f62060b6dd6b89304a346 (patch)
tree18e461944c75f79fdb554bb1d30afd9339df849f /internal/reader/json/parser_test.go
parent9df12177ebe2e710eea4d322c57ff5c928e84059 (diff)
downloadv2-4be993e05537a2ed658f62060b6dd6b89304a346.tar.gz
v2-4be993e05537a2ed658f62060b6dd6b89304a346.tar.zst
v2-4be993e05537a2ed658f62060b6dd6b89304a346.zip
Minor refactoring of internal/reader/atom/atom_10_adapter.go
- Move the population of the feed's entries into a new function, to make `BuildFeed` easier to understand/separate concerns/implementation details - Use `sort+compact` instead of `compact+sort` to remove duplicates - Change `if !a { a = } if !a {a = }` constructs into `if !a { a = ; if !a {a = }}`. This reduce the number of comparisons, but also improves a tad the control-flow readability.
Diffstat (limited to 'internal/reader/json/parser_test.go')
0 files changed, 0 insertions, 0 deletions