From 7b1aa2e84a7f46dffa613fa5d12b585f2d471498 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 24 Nov 2022 17:10:46 +0100 Subject: [PATCH] dump logfile: avoid boolean ternary if already boolean value Signed-off-by: Thomas Lamprecht --- src/PVE/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 6072eb7..cdbee6d 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -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) { -- 2.39.2