Fixed some bitrot and some unused variables.
[cocanwiki.git] / scripts / invite_user.ml
index 19bd170..8f3a09a 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: invite_user.ml,v 1.7 2006/03/28 13:20:00 rich Exp $
+ * $Id: invite_user.ml,v 1.8 2006/07/26 13:12:10 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -39,10 +39,8 @@ let run r (q : cgi) dbh hostid {hostname = hostname} user =
   let emails = Pcre.split ~rex:split_re emails in
 
   (* This guy's got no friends ... *)
-  if emails = [] then (
+  if emails = [] then
     q#redirect ("http://" ^ hostname ^ "/");
-    return ()
-  );
 
   let userid, username, email = match user with
       User (userid, username, _, prefs) -> userid, username, prefs.email