]> git.proxmox.com Git - pve-http-server.git/commit
request: add missing early return to complete error check
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Jul 2022 09:08:16 +0000 (11:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Jul 2022 09:08:19 +0000 (11:08 +0200)
commit4099febef5df2766b136fcd6a2e6b384c7b5a7cd
treed2874dfff87847e3597e95549250e15ce2adcbd0
parent9f092591c8e40143d74b6ebf8fb944697be69c2c
request: add missing early return to complete error check

While $self->error will immediately send out a 4xx or 5xx response
anyhow its still good to cover against possible side effects (e.g.,
from future code in that branch) on the server and return directly.

Note that this is mostly for completeness sake, we already have
another check that covers this one for relevant cases in commit
580d540ea907ba15f64379c5bb69ecf1a49a875f.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/APIServer/AnyEvent.pm