miniflux / v2

Minimalist and opinionated feed reader
https://miniflux.app
Apache License 2.0
6.97k stars 728 forks source link

cleanup(reader/handler): calling store.UpdateFeed and store.UpdateFeedError in a defer function #2879

Open shizunge opened 1 month ago

shizunge commented 1 month ago

This makes sure that we are always calling the following functions:

The store functions within them will udpate the value in database.

This change aims to reduce "unknown unknowns" in the codes. With this change, we won't miss calling above functions.

Do you follow the guidelines?