refactor: inline constant return value of CDBWrapper::Write

This commit is contained in:
Lőrinc
2025-07-22 12:28:44 -07:00
parent d1847cf5b5
commit cdab9480e9
5 changed files with 26 additions and 26 deletions

View File

@@ -230,12 +230,11 @@ public:
}
template <typename K, typename V>
bool Write(const K& key, const V& value, bool fSync = false)
void Write(const K& key, const V& value, bool fSync = false)
{
CDBBatch batch(*this);
batch.Write(key, value);
WriteBatch(batch, fSync);
return true;
}
//! @returns filesystem path to the on-disk data.