From 9089b281f7b0e43df01c28c77546fbf093aba7c2 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 24 Nov 2009 17:57:00 +0100 Subject: [PATCH] Style fix. --- lib/November.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/November.pm b/lib/November.pm index 0ea6761..208b896 100644 --- a/lib/November.pm +++ b/lib/November.pm @@ -208,28 +208,23 @@ class November does Session does Cache { my Str @errors; - unless defined $password - { + unless defined $password { push @errors, "Please provide a password for your mask."; } - if $password.chars < 6 - { + if $password.chars < 6 { push @errors, "Please provide at least six characters for your password."; } - if $password neq $passagain - { + if $password neq $passagain { push @errors, "The password and confirmation must match."; } - if defined self.read_users(){$user_name} - { + if defined self.read_users(){$user_name} { push @errors, "This username is taken. Please choose another."; } - if @errors.elems - { + if @errors { self.response('register_failed.tmpl'); return; }