Skip to content

Commit

Permalink
Fix inconsistent alignment in decode_content
Browse files Browse the repository at this point in the history
Thanks to @ian-mi for catching this in review.
  • Loading branch information
nickelization committed Jan 4, 2017
1 parent 7c63a5c commit 6156ab3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/riak_pb_kv_codec.erl
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ decode_content_meta(ttl, TTLVal, _Pb) ->
-spec decode_content(PBContent::tuple()) -> {metadata(), binary()}.
decode_content(PbC) ->
MD = decode_content_meta(content_type, PbC#rpbcontent.content_type, PbC) ++
decode_content_meta(charset, PbC#rpbcontent.charset, PbC) ++
decode_content_meta(encoding, PbC#rpbcontent.content_encoding, PbC) ++
decode_content_meta(vtag, PbC#rpbcontent.vtag, PbC) ++
decode_content_meta(links, PbC#rpbcontent.links, PbC) ++
decode_content_meta(last_mod, PbC#rpbcontent.last_mod, PbC) ++
decode_content_meta(usermeta, PbC#rpbcontent.usermeta, PbC) ++
decode_content_meta(indexes, PbC#rpbcontent.indexes, PbC) ++
decode_content_meta(deleted, PbC#rpbcontent.deleted, PbC) ++
decode_content_meta(ttl, PbC#rpbcontent.ttl, PbC),
decode_content_meta(charset, PbC#rpbcontent.charset, PbC) ++
decode_content_meta(encoding, PbC#rpbcontent.content_encoding, PbC) ++
decode_content_meta(vtag, PbC#rpbcontent.vtag, PbC) ++
decode_content_meta(links, PbC#rpbcontent.links, PbC) ++
decode_content_meta(last_mod, PbC#rpbcontent.last_mod, PbC) ++
decode_content_meta(usermeta, PbC#rpbcontent.usermeta, PbC) ++
decode_content_meta(indexes, PbC#rpbcontent.indexes, PbC) ++
decode_content_meta(deleted, PbC#rpbcontent.deleted, PbC) ++
decode_content_meta(ttl, PbC#rpbcontent.ttl, PbC),


{dict:from_list(MD), PbC#rpbcontent.value}.
Expand Down

0 comments on commit 6156ab3

Please sign in to comment.