Skip to content

Commit 098354d

Browse files
committed
tweak
1 parent 5bb64df commit 098354d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jscomp/bsb/bsb_db_util.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ let add_basename
8989
let info = ref Bsb_db.Impl in
9090
let syntax_kind = ref Bsb_db.Ml in
9191
let invalid_suffix = ref false in
92-
(match Ext_filename.get_extension_maybe basename with
93-
| ".ml" ->
92+
let file_suffix = Ext_filename.get_extension_maybe basename in
93+
(match () with
94+
| _ when file_suffix = Literals.suffix_ml ->
9495
()
95-
| ".re" ->
96+
| _ when file_suffix = Literals.suffix_re ->
9697
syntax_kind := Reason
97-
| ".mli" ->
98+
| _ when file_suffix = Literals.suffix_mli ->
9899
info := Intf
99-
| ".rei" ->
100+
| _ when file_suffix = Literals.suffix_rei ->
100101
info := Intf;
101102
syntax_kind := Reason
102103
| _ ->
103104
invalid_suffix := true
104-
105105
);
106106
let info= !info in
107107
let syntax_kind = !syntax_kind in

0 commit comments

Comments
 (0)