Commit 2327849c authored by Heinz N. Gies's avatar Heinz N. Gies

Handle empty lines

parent 9fd1664b
Pipeline #18753714 passed with stage
in 1 minute and 23 seconds
......@@ -16,6 +16,8 @@ fold_lines(<<>>, Line, State) ->
fold_lines(<<C, R/binary>>, Line, State) ->
fold_lines(R, <<Line/binary, C>>, State).
decode_metrics(<<>>, State) ->
decode_metrics(Line, State = #{decoder := Decoder}) ->
{ok, Decoded} = Decoder:parse(Line),
lists:foldl(fun decode_metric/2, State, Decoded).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment