5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-09 05:17:35 +03:00

dump logfile: avoid boolean ternary if already boolean value

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-24 17:10:46 +01:00
parent f0c1b0c03c
commit 7b1aa2e84a

View File

@ -1281,7 +1281,7 @@ sub dump_logfile {
$start = $start // 0;
$limit = $limit // 50;
my $read_until_end = ($limit == 0) ? 1 : 0;
my $read_until_end = $limit == 0;
my $line;
if ($filter) {