Slimline translation from entry to file lock entry

This commit is contained in:
Julian Ganz 2016-01-25 12:32:30 +01:00
parent 9760f72e79
commit 86ab4ba4b1

View file

@ -155,7 +155,7 @@ impl Store {
// TODO: update the store entry status // TODO: update the store entry status
// make a file lock entry from the store entry // make a file lock entry from the store entry
store_entry.get_entry().and_then(|entry| Ok(FileLockEntry::new(self, entry, id))) store_entry.get_entry().map(|entry| FileLockEntry::new(self, entry, id))
} }
/// Iterate over all StoreIds for one module name /// Iterate over all StoreIds for one module name