Fixed some bitrot and some unused variables.
[cocanwiki.git] / scripts / admin / edit_hostnames.ml
index 1fe9e62..7b3978f 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: edit_hostnames.ml,v 1.10 2006/03/28 16:24:08 rich Exp $
+ * $Id: edit_hostnames.ml,v 1.11 2006/07/26 13:12:11 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
@@ -36,8 +36,7 @@ let run r (q : cgi) dbh _ host' _ =
   if q#param_true "cancel" then (
     let { hostname = hostname } = host' in
     q#redirect ("http://" ^ hostname ^ "/_bin/admin/host.cmo?hostid=" ^
-                 Int32.to_string hostid);
-    return ()
+                 Int32.to_string hostid)
   );
 
   let canonical_hostname = q#param "canonical_hostname" in