]> git.proxmox.com Git - pve-common.git/commitdiff
dump logfile: avoid boolean ternary if already boolean value
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Nov 2022 16:10:46 +0000 (17:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Nov 2022 16:12:18 +0000 (17:12 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Tools.pm

index 6072eb736afaf51f6b2631158f7f1e5e36189ee1..cdbee6d14aa43650b16b82c4a83b601a924f74e6 100644 (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) {