]> git.proxmox.com Git - proxmox.git/commit
rest-server: code complexity clean-up in task-log rotation
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 18 Oct 2023 17:41:55 +0000 (19:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 26 Oct 2023 08:13:45 +0000 (10:13 +0200)
commitba59b84d464d297bea2b0fbefc1d44759cfaa0e9
tree97a58339649837e0a1b0aecc8dbf6d17efb9fbfd
parent4197e94e252ead5237d061bb5eeb3ba19d64c999
rest-server: code complexity clean-up in task-log rotation

avoid using the negative in the if check and extract the value to be
passed upfront.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-rest-server/src/worker_task.rs