add assertion check

This commit is contained in:
yggverse 2025-07-26 08:40:14 +03:00
parent 8fb0574fc2
commit f944575784

View File

@ -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
} }
} }