Francois Gouget : testbot/Users: Remove a redundant check in SendResetCode( ).

Alexandre Julliard julliard at winehq.org
Wed Apr 3 14:29:49 CDT 2013


Module: tools
Branch: master
Commit: 783f7dc5e0793c1853fc31988d807940e3e7687b
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=783f7dc5e0793c1853fc31988d807940e3e7687b

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Apr  3 16:57:58 2013 +0200

testbot/Users: Remove a redundant check in SendResetCode().

An account which has been activated is no longer waiting for approval.

---

 testbot/lib/WineTestBot/Users.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testbot/lib/WineTestBot/Users.pm b/testbot/lib/WineTestBot/Users.pm
index cb3725b..a163a17 100644
--- a/testbot/lib/WineTestBot/Users.pm
+++ b/testbot/lib/WineTestBot/Users.pm
@@ -166,7 +166,7 @@ sub SendResetCode
   {
     return "This account has been suspended";
   }
-  if (! $self->Activated() && $self->WaitingForApproval())
+  if ($self->WaitingForApproval())
   {
     return "Your account has not been approved yet";
   }




More information about the wine-cvs mailing list