Skip to content

Commit

Permalink
Accept empty params
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Apr 10, 2024
1 parent e75b8c1 commit 3eea746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml-lsp-server/src/custom_requests/req_dune_contexts.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Request_params = struct
()
in
match params with
| None -> ()
| None | Some (`List []) -> ()
| Some params ->
let error_json = `Assoc [ ("params_received", (params :> Json.t)) ] in
raise_invalid_params
Expand Down

0 comments on commit 3eea746

Please sign in to comment.