summaryrefslogtreecommitdiff
path: root/src/catlfish.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/catlfish.erl')
-rw-r--r--src/catlfish.erl16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/catlfish.erl b/src/catlfish.erl
index 0a14961..dd25a84 100644
--- a/src/catlfish.erl
+++ b/src/catlfish.erl
@@ -252,15 +252,13 @@ deserialise_extra_data(ExtraData) ->
chain_from_mtl_extradata(MTL, ExtraData) ->
TimestampedEntry = MTL#mtl.entry,
Chain = deserialise_extra_data(ExtraData),
- Data =
- case TimestampedEntry#timestamped_entry.entry_type of
- x509_entry ->
- SignedEntry = TimestampedEntry#timestamped_entry.signed_entry,
- [SignedEntry#signed_x509_entry.asn1_cert | Chain];
- precert_entry ->
- Chain
- end,
- Data.
+ case TimestampedEntry#timestamped_entry.entry_type of
+ x509_entry ->
+ SignedEntry = TimestampedEntry#timestamped_entry.signed_entry,
+ [SignedEntry#signed_x509_entry.asn1_cert | Chain];
+ precert_entry ->
+ Chain
+ end.
mtl_and_extra_from_entry(Entry) ->
{MTLText, ExtraDataPacked} = unpack_entry(Entry),