Error reporting when blob to delete was not found

This commit is contained in:
Sebastian Messmer 2015-09-29 18:47:57 +02:00
parent c49663842c
commit bf02682734

View File

@ -113,11 +113,8 @@ optional<unique_ref<blobstore::Blob>> CryDevice::LoadBlob(const blockstore::Key
void CryDevice::RemoveBlob(const blockstore::Key &key) { void CryDevice::RemoveBlob(const blockstore::Key &key) {
auto blob = _blobStore->load(key); auto blob = _blobStore->load(key);
if(blob) { ASSERT(blob != none, "Blob not found");
_blobStore->remove(std::move(*blob)); _blobStore->remove(std::move(*blob));
} else {
//TODO Log error
}
} }
Key CryDevice::GetOrCreateRootKey(CryConfig *config) { Key CryDevice::GetOrCreateRootKey(CryConfig *config) {