]> git.proxmox.com Git - pve-common.git/commit - src/PVE/CLIHandler.pm
cli handler: fix "return" statement followed by "sort" critic
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Apr 2023 13:08:29 +0000 (15:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Apr 2023 13:08:54 +0000 (15:08 +0200)
commit646a36efce863c04b63f36dbdddefdbf146bf611
tree1a80db00e155ce79d878658f23e7269c297b0d4e
parentb66eddb7ffb92ceadf37ed9c045dacf0bf8b991b
cli handler: fix "return" statement followed by "sort" critic

As that's undefined behavior if the containing sub is called in
scalar context.

https://metacpan.org/pod/Perl::Critic::Policy::Subroutines::ProhibitReturnSort

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