summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-06-10 16:21:33 +0200
committerLinus Nordberg <linus@nordu.net>2015-06-10 16:54:55 +0200
commit5738350896c84eb8e706bdd0ef48f1e335ed28e5 (patch)
tree5e77c60f47f0e1f3ab44ae74d76707ec00d4cca9 /src
parentd941ea72210224c4ee80c304b8b0d3aa54b80e3b (diff)
Remove unused temporary variable.
Diffstat (limited to 'src')
-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),