1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-26 18:21:01 +00:00
miniflux-v2/internal/http/response
Julien Voisin 3acb888309
refactor(response): simplify switch-case and remove unnecessary defer
- b.body can never be of type error, so let's remove it from the switch-case
  construct.
- there is no need to use defer when the only return statement is two lines
  after.
2025-08-20 19:31:28 -07:00
..
html refactor(misc): make use of type constraints where possible 2025-07-31 18:59:55 -07:00
json fix(api): return 500 response when JSON serialization fails 2025-01-30 18:19:50 -08:00
xml refactor(misc): make use of type constraints where possible 2025-07-31 18:59:55 -07:00
builder.go refactor(response): simplify switch-case and remove unnecessary defer 2025-08-20 19:31:28 -07:00
builder_test.go refactor(response): simplify switch-case and remove unnecessary defer 2025-08-20 19:31:28 -07:00
response.go fix(security): use a more restrictive CSP for untrusted content 2025-03-29 19:49:41 -07:00