summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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');
}