[05/10] testbot/Users: Remove a redundant check in SendResetCode().

Francois Gouget fgouget at codeweavers.com
Wed Apr 3 09:57:58 CDT 2013


An account which has been activated is no longer waiting for approval.
---
 testbot/lib/WineTestBot/Users.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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";
   }
-- 
1.7.10.4




More information about the wine-patches mailing list