]> git.proxmox.com Git - pve-manager-legacy.git/commit
proxy: cleanup getting index method
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 22 Apr 2023 07:47:29 +0000 (09:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 22 Apr 2023 07:47:30 +0000 (09:47 +0200)
commit38b07c13bd28d65390ae7f85958b5f9f4a94855f
tree17ea8b73f85d5f442ed53c2ad40ce442ab47fa23
parent319b9928faa61a42be7c711a38d445c21ea68336
proxy: cleanup getting index method

- improve variable definition/use locality
- avoid some if's for some (mostly boolean) assignments, just use an
  expression

As long as we don't go overboard with code golfing it to extremely
terse, shorter code is always more readable, especially if
definition/use happens not dozens of lines apart.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Service/pveproxy.pm