Skip to content

Commit

Permalink
Fix decoders for extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
potatosalad committed Feb 13, 2024
1 parent ac04dc8 commit 4279069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/argo/src/value/argo_json_value_decoder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ decode_wire_type(JsonValueDecoder1 = #argo_json_value_decoder{}, WireType = #arg
{JsonValueDecoder2, Value};
#argo_extensions_wire_type{} ->
{JsonValueDecoder2, ExtensionsValue} = decode_extensions_wire_type(JsonValueDecoder1, JsonValue),
Value = argo_value:error(ExtensionsValue),
Value = argo_value:extensions(ExtensionsValue),
{JsonValueDecoder2, Value};
#argo_path_wire_type{} ->
{JsonValueDecoder2, PathValue} = decode_path_wire_type(JsonValueDecoder1, JsonValue),
Expand Down
2 changes: 1 addition & 1 deletion apps/argo/src/value/argo_value_decoder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ decode_wire_type(ValueDecoder1 = #argo_value_decoder{}, WireType = #argo_wire_ty
{ValueDecoder2, ErrorValue} = decode_error_wire_type(ValueDecoder1),
Value = argo_value:error(ErrorValue),
{ValueDecoder2, Value};
#argo_extensions_value{} ->
#argo_error_wire_type{} ->
{ValueDecoder2, ExtensionsValue} = decode_extensions_wire_type(ValueDecoder1),
Value = argo_value:extensions(ExtensionsValue),
{ValueDecoder2, Value};
Expand Down

0 comments on commit 4279069

Please sign in to comment.