diff options
author | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-03 18:41:21 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-03 18:41:21 +0200 |
commit | 0afc24fdc102776e5e1ac12c25f0e145932e1166 (patch) | |
tree | ccacb5619fa2f780f6b6367e0b6943b33d87c6a7 /lib/JWebmail/Model/ReadMails | |
parent | a6e6f8be88a93699765f25aee0e6109a3eb0b307 (diff) |
'die' propagates automatically if empty
Diffstat (limited to 'lib/JWebmail/Model/ReadMails')
-rw-r--r-- | lib/JWebmail/Model/ReadMails/Role.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/JWebmail/Model/ReadMails/Role.pm b/lib/JWebmail/Model/ReadMails/Role.pm index 3af73ed..d6472a1 100644 --- a/lib/JWebmail/Model/ReadMails/Role.pm +++ b/lib/JWebmail/Model/ReadMails/Role.pm @@ -55,7 +55,7 @@ around @methods => sub { my @res; my $succ = eval { @res = $orig->(@_); 1 }; $_[1]->{password} = $safe; - die $@ unless $succ; + die unless $succ; return wantarray ? @res : $res[$#res]; }; |