]> git.proxmox.com Git - pve-common.git/commit
section config: update code style
authorMax Carrara <m.carrara@proxmox.com>
Tue, 4 Jun 2024 09:28:49 +0000 (11:28 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 4 Jul 2024 08:54:48 +0000 (10:54 +0200)
commit29292d2a5d84291b3f8392ff26cca8e2654ac4b9
tree8e206c656a56ec120fd76eeede6a0711d6741daf
parentd41bd420f8b5421cf95d9403728ba28b17a420e5
section config: update code style

Replace `foreach` with `for` and use postfix deref instead of block
(circumfix) dereference (`$foo->%*` instead of `%$foo`).

Furthermore, make `format_config_line` a private sub instead of
unnecessarily declaring it as an anonymous subroutine, which avoids
the `&$sub_ref(...)` syntax altogether.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
src/PVE/SectionConfig.pm