There was an error while loading. Please reload this page.
1 parent 51ac77c commit f857633Copy full SHA for f857633
1 file changed
src/completion/list_interfaces/list_interfaces.ml
@@ -132,7 +132,10 @@ let get_interfaces_by_type out intf_type =
132
133
let get_interfaces =
134
let types = List.rev !intf_types in
135
- List.fold_left get_interfaces_by_type [] types
+ if types <> [] then
136
+ List.fold_left get_interfaces_by_type [] types
137
+ else
138
+ get_interfaces_by_type [] ""
139
140
let () =
141
let res = get_interfaces in
0 commit comments