]> git.proxmox.com Git - pve-manager.git/commit - PVE/Service/pveproxy.pm
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)
commitf16342f37e9a5cbbe9e0dcd6efc0a18b7217c059
tree112ebaa065645e178b680e17acf3d45be1fc3fa7
parent919cfa29e1a5d8ac8f44621a2fbbe82a65e903eb
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