Quellcode durchsuchen

ft: toBinary修改

master
SisMaker vor 4 Jahren
Ursprung
Commit
d8bca21f7c
1 geänderte Dateien mit 0 neuen und 2 gelöschten Zeilen
  1. +0
    -2
      src/agVstCli/agMiscUtils.erl

+ 0
- 2
src/agVstCli/agMiscUtils.erl Datei anzeigen

@ -92,7 +92,5 @@ toBinary(Value) when is_list(Value) -> list_to_binary(Value);
toBinary(Value) when is_float(Value) -> float_to_binary(Value, [{decimals, 6}, compact]);
toBinary(Value) when is_atom(Value) -> atom_to_binary(Value, utf8);
toBinary(Value) when is_binary(Value) -> Value;
toBinary([Tuple | PropList] = Value) when is_list(PropList) and is_tuple(Tuple) ->
lists:map(fun({K, V}) -> {toBinary(K), toBinary(V)} end, Value);
toBinary(Value) -> term_to_binary(Value).

Laden…
Abbrechen
Speichern