embarasssssing
This commit is contained in:
parent
91f503fc07
commit
88da19783a
1 changed files with 2 additions and 3 deletions
|
@ -133,17 +133,16 @@ collect({incomplete, More}, Acc, Opts) ->
|
||||||
case More(end_stream) of
|
case More(end_stream) of
|
||||||
{event, Event, _Next} -> event(Event, Opts)
|
{event, Event, _Next} -> event(Event, Opts)
|
||||||
; _ ->
|
; _ ->
|
||||||
io:format("hi"),
|
|
||||||
case proplists:get_value(stream, Opts, false) of
|
case proplists:get_value(stream, Opts, false) of
|
||||||
true ->
|
true ->
|
||||||
{incomplete,
|
{incomplete,
|
||||||
fun(JSON) -> collect(More(JSON), Acc, Opts) end
|
fun(JSON) -> collect(More(JSON), Acc, Opts) end
|
||||||
}
|
}
|
||||||
; false -> erlang:error(badarg), io:format("hello!")
|
; false -> erlang:error(badarg)
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
%% any other event is an error
|
%% any other event is an error
|
||||||
collect(_, _, _) -> io:format(":("), erlang:error(badarg).
|
collect(_, _, _) -> erlang:error(badarg).
|
||||||
|
|
||||||
|
|
||||||
%% helper functions for converting jsx events to eep0018 formats
|
%% helper functions for converting jsx events to eep0018 formats
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue