From c29686cd725cea644ffebd5d473331b3d61403c8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 17 May 2011 14:48:42 +0200 Subject: App::Raps2::Password: Simplify conditionals --- lib/App/Raps2/Password.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Raps2/Password.pm b/lib/App/Raps2/Password.pm index b236b7b..d24984c 100644 --- a/lib/App/Raps2/Password.pm +++ b/lib/App/Raps2/Password.pm @@ -21,7 +21,7 @@ sub new { $conf{salt} = create_salt(); } - if (not (defined $conf{salt} and length($conf{salt}) == 16)) { + if (length($conf{salt}) != 16) { confess('incorrect salt length'); } @@ -52,7 +52,7 @@ sub salt { return $self->{salt}; } - if (not (defined $salt and length($salt) == 16)) { + if (length($salt) != 16) { confess('incorrect salt length'); } -- cgit v1.2.3