summaryrefslogtreecommitdiff
path: root/src/attach.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/attach.cpp')
-rw-r--r--src/attach.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/attach.cpp b/src/attach.cpp
index 4bf06b1..74bc875 100644
--- a/src/attach.cpp
+++ b/src/attach.cpp
@@ -105,14 +105,9 @@ AttachIdentity AttachIdentity::load(const Ref & ref)
.keys = {},
};
- vector<vector<uint8_t>> keys;
- for (auto s : rec->items("skey"))
- if (const auto & b = s.asBinary())
- keys.push_back(*b);
-
return AttachIdentity {
.identity = *rec->item("identity").as<Signed<IdentityData>>(),
- .keys = keys,
+ .keys = rec->items("skey").asBinary(),
};
}