Commit 6ad21e06 authored by Heinz N. Gies's avatar Heinz N. Gies

Linting cleanup

parent 705002c7
Pipeline #18739988 failed with stages
in 24 seconds
...@@ -540,13 +540,7 @@ decode(<<?GET, ...@@ -540,13 +540,7 @@ decode(<<?GET,
Time:?TIME_SIZE/?SIZE_TYPE, Count:?COUNT_SIZE/?SIZE_TYPE, Time:?TIME_SIZE/?SIZE_TYPE, Count:?COUNT_SIZE/?SIZE_TYPE,
HPTS, HPTS,
RR:?GET_OPT_SIZE/?SIZE_TYPE, R:?GET_OPT_SIZE/?SIZE_TYPE>>) -> RR:?GET_OPT_SIZE/?SIZE_TYPE, R:?GET_OPT_SIZE/?SIZE_TYPE>>) ->
Opts0 = case decode_bool(HPTS) of Opts = [{r, decode_r(R)}, {rr, decode_rr(RR)} | decode_hpts(HPTS)],
true ->
[hpts];
false ->
[]
end,
Opts = [{r, decode_r(R)}, {rr, decode_rr(RR)} | Opts0],
{get, Bucket, Metric, Time, Count, Opts}; {get, Bucket, Metric, Time, Count, Opts};
decode(<<?GET, decode(<<?GET,
...@@ -556,14 +550,8 @@ decode(<<?GET, ...@@ -556,14 +550,8 @@ decode(<<?GET,
HPTS, HPTS,
RR:?GET_OPT_SIZE/?SIZE_TYPE, R:?GET_OPT_SIZE/?SIZE_TYPE, RR:?GET_OPT_SIZE/?SIZE_TYPE, R:?GET_OPT_SIZE/?SIZE_TYPE,
AggrB/binary>>) -> AggrB/binary>>) ->
Opts0 = case decode_bool(HPTS) of
true ->
[hpts];
false ->
[]
end,
Opts = [{r, decode_r(R)}, {rr, decode_rr(RR)}, Opts = [{r, decode_r(R)}, {rr, decode_rr(RR)},
{aggr, decode_aggr(AggrB)} | Opts0], {aggr, decode_aggr(AggrB)} | decode_hpts(HPTS)],
{get, Bucket, Metric, Time, Count, Opts}; {get, Bucket, Metric, Time, Count, Opts};
decode(<<?STREAM, decode(<<?STREAM,
...@@ -832,3 +820,11 @@ decode_bool(0) -> ...@@ -832,3 +820,11 @@ decode_bool(0) ->
false; false;
decode_bool(1) -> decode_bool(1) ->
true. true.
decode_hpts(HPTS) ->
case decode_bool(HPTS) of
true ->
[hpts];
false ->
[]
end.
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