Parcourir la source

Fix compiler warning

 - Useless variable was created and we got
    - Warning 26: unused variable file.
Leo il y a 10 ans
Parent
commit
ce58949aa7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/tmp_file.ml

+ 1 - 1
src/tmp_file.ml

@@ -46,7 +46,7 @@ let rec init ~tmp =
   (* If file do not exists, create it *)
   let file_exists = (Sys.file_exists tmp) in
     match file_exists with
-      | `No -> let file = create_tmp_file ~name:tmp in
+      | `No -> create_tmp_file ~name:tmp;
           init ~tmp:tmp
       | `Unknown -> begin
           Core_extended.Shell.rm tmp;