From 89464dc60b02c7c52a48aa101075cbc1275ee162 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 29 Jan 2020 18:29:01 +0100 Subject: [PATCH] cleanup superfluous hide checks in show_lines() Existing code duplicated in commit v1.03-16-g62a8af4725 (2019-09-08) [stat (-s) option to summarise totals at end]. --- barcat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/barcat b/barcat index 0d843c1..9e78016 100755 --- a/barcat +++ b/barcat @@ -193,9 +193,8 @@ sub sival { sub show_lines { state $nr = $opt{hidemin}; -@lines and @lines > $nr or return; @lines or return; -@lines > $nr or return unless $opt{hidemin}; +@lines > $nr or return; @order = sort { $b <=> $a } @order unless tied @order; my $maxval = $opt{maxval} // ( @@ -245,8 +244,6 @@ if ($opt{markers} and $size > 0) { } } -@lines > $nr or return if $opt{hidemin}; - say( color(31), sprintf('%*s', $lenval, $minval), color(90), '-', color(36), '+', -- 2.30.0