Skip to content

Commit d534799

Browse files
authored
Correct arity of format_string (lexical-lsp#131)
The function is called with only one argument. Using it like this leads to a crash of the server on save.
1 parent 94b629f commit d534799

File tree

1 file changed

+1
-1
lines changed
  • apps/remote_control/lib/lexical/remote_control/code_mod

1 file changed

+1
-1
lines changed

apps/remote_control/lib/lexical/remote_control/code_mod/format.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ defmodule Lexical.RemoteControl.CodeMod.Format do
7979
result
8080

8181
_ ->
82-
formatter = &Code.format_string!/2
82+
formatter = &Code.format_string!/1
8383
{formatter, nil}
8484
end
8585
else

0 commit comments

Comments
 (0)