Skip to content

Commit a364a05

Browse files
committed
Support to_command_value calling into Jason.encode!
1 parent f8768fb commit a364a05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/command_utils.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ defmodule ElixirScript.CommandUtils do
22
def to_command_value(nil), do: ""
33

44
def to_command_value(input) when is_binary(input), do: input
5+
6+
def to_command_value(input), do: Jason.encode!(input)
57
end

0 commit comments

Comments
 (0)