aboutsummaryrefslogtreecommitdiff
path: root/internal/api/entry.go
diff options
context:
space:
mode:
authorGravatar Alexandros Kosiaris <akosiaris@gmail.com> 2024-03-29 16:45:32 +0200
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-08-18 11:35:45 -0700
commit89ff33ddd0125782ee6dbe075a3e21c0eacda15e (patch)
tree3a8d997550c3c80c20552f01921ce3ed7c8e22e0 /internal/api/entry.go
parentf3a5a3ee14f4e9b0658f0ef5e050ba2bc872bc5a (diff)
downloadv2-89ff33ddd0125782ee6dbe075a3e21c0eacda15e.tar.gz
v2-89ff33ddd0125782ee6dbe075a3e21c0eacda15e.tar.zst
v2-89ff33ddd0125782ee6dbe075a3e21c0eacda15e.zip
fix(client): Return nil and error if endpoint is empty string
Why: Passing an empty string as an endpoint to Client when instantiating a new client might seem like something that should never happen but I managed to trigger it while parsing some input files to register feeds in bulk. What: In the execute() function, check early if the endpoint is "" and then return immediately nil and a new error, named ErrEmptyEndpoint with a descriptive string
Diffstat (limited to 'internal/api/entry.go')
0 files changed, 0 insertions, 0 deletions