summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-17 14:48:42 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-17 14:48:42 +0200
commitc29686cd725cea644ffebd5d473331b3d61403c8 (patch)
tree35c801eaa0be54f9d44cf3db76886297ad4d22f8 /lib
parent9f84c2ba374a07fcf12fdf41c0d6f1fc3f315655 (diff)
App::Raps2::Password: Simplify conditionals
Diffstat (limited to 'lib')
-rw-r--r--lib/App/Raps2/Password.pm4
1 files 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');
}