diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-06-17 21:58:32 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-06-18 22:41:23 +0200 |
commit | e7d6aafd3c9353d9e6169ca775cf1dae618238cd (patch) | |
tree | 6df8f296d7db8dd9e7d23f5774009ccc5ee269a7 /src/attach.cpp | |
parent | 2130d07cbf91e016fd21a730a8449dd4bd34a093 (diff) |
Storage: iterable type for record item list
Diffstat (limited to 'src/attach.cpp')
-rw-r--r-- | src/attach.cpp | 7 |
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(), }; } |