From 4b3c6874da1c45a666b58582f93254cfd5150d7d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 1 Apr 2017 23:14:00 +0200 Subject: Fix codingstyle Signed-off-by: Florian Pritz --- script/borg-restore.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script') diff --git a/script/borg-restore.pl b/script/borg-restore.pl index 32eba63..7f8d8d4 100755 --- a/script/borg-restore.pl +++ b/script/borg-restore.pl @@ -177,12 +177,11 @@ sub user_select_archive { my $selected_archive; - my $counter = 0; - if (!@$archives) { return; } + my $counter = 0; for my $archive (@$archives) { printf "\e[0;33m%3d: \e[1;33m%s\e[0m %s\n", $counter++, $app->format_timestamp($archive->{modification_time}), $archive->{archive}; } -- cgit v1.2.3-24-g4f1b