mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-13 15:32:01 +00:00
add assertion check
This commit is contained in:
parent
8fb0574fc2
commit
f944575784
@ -30,7 +30,7 @@ impl Misc {
|
|||||||
|
|
||||||
// update values from the DB (if exists)
|
// update values from the DB (if exists)
|
||||||
for row in rows {
|
for row in rows {
|
||||||
m.insert(Memory::from_db_row(&row.key, row.value).unwrap());
|
assert!(!m.insert(Memory::from_db_row(&row.key, row.value).unwrap()));
|
||||||
// * panics if the DB was malformed or changed unexpectedly
|
// * panics if the DB was malformed or changed unexpectedly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user