mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add assertion check
This commit is contained in:
parent
8fb0574fc2
commit
f944575784
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue