From b36eada764601355be4616fb92822ffabdcb1dc8 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sun, 22 May 2022 16:31:21 +0200 Subject: fixes for lint issues --- lib/JWebmail/Model/ReadMails/Role.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/JWebmail/Model/ReadMails') diff --git a/lib/JWebmail/Model/ReadMails/Role.pm b/lib/JWebmail/Model/ReadMails/Role.pm index 593672c..1f4390b 100644 --- a/lib/JWebmail/Model/ReadMails/Role.pm +++ b/lib/JWebmail/Model/ReadMails/Role.pm @@ -56,7 +56,7 @@ around @methods => sub { my $succ = eval { @res = $orig->(@_); 1 }; $_[1]->{password} = $safe; die unless $succ; - return wantarray ? @res : $res[$#res]; + return wantarray ? @res : $res[-1]; }; around read_headers_for => sub { -- cgit v1.2.3