Re: [pve-devel] [PATCH storage 3/3] decompress: use hash instead of if statement

2019-06-17 Thread Thomas Lamprecht
On 6/14/19 3:37 PM, Alwin Antreich wrote: > For less and cleaner code, use a hash for de-compressor commands instead > of the 'long' if-elsif statement. > squash that with 1/3, or better try to pull the decompressor_ method out in a separate patch, with this already applied, and not mixed in with

[pve-devel] [PATCH storage 3/3] decompress: use hash instead of if statement

2019-06-14 Thread Alwin Antreich
For less and cleaner code, use a hash for de-compressor commands instead of the 'long' if-elsif statement. Signed-off-by: Alwin Antreich --- PVE/Storage.pm | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 6953b3f..537