Skip to content

Commit 4282414

Browse files
committed
tweak
1 parent bb8d729 commit 4282414

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jscomp/main/js_main.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,9 @@ let process_file ppf sourcefile =
7878
The {!Location.input_name} relies on that we write the binary ast
7979
properly
8080
*)
81-
Location.set_input_name sourcefile;
82-
let ext = Ext_filename.get_extension_maybe sourcefile in
83-
let input = Ext_file_extensions.classify_input ext in
81+
Location.set_input_name sourcefile;
8482
let opref = output_prefix sourcefile in
85-
match input with
83+
match Ext_file_extensions.classify_input (Ext_filename.get_extension_maybe sourcefile) with
8684
| Re -> handle_reason Ml sourcefile ppf opref
8785
| Rei ->
8886
handle_reason Mli sourcefile ppf opref

0 commit comments

Comments
 (0)