Fixed some bitrot and some unused variables.
[cocanwiki.git] / scripts / delete_user.ml
index 9e4cffd..ecdc44a 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: delete_user.ml,v 1.6 2006/03/27 18:09:46 rich Exp $
+ * $Id: delete_user.ml,v 1.7 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
@@ -28,11 +28,9 @@ open Cocanwiki
 open Cocanwiki_ok
 
 let run r (q : cgi) dbh hostid {hostname = hostname} self =
-  if q#param_true "cancel" then (
+  if q#param_true "cancel" then
     (* Request cancelled. *)
     q#redirect ("http://" ^ hostname ^ "/_users");
-    return ()
-  );
 
   let userid = Int32.of_string (q#param "userid") in