refactor: Add missing {} around error() calls

This is required for the next commit to be correct.
This commit is contained in:
MarcoFalke
2024-01-11 18:34:56 +01:00
parent 4a903741b0
commit fa9a5e80ab
4 changed files with 21 additions and 9 deletions

View File

@@ -159,7 +159,9 @@ bool BlockFilterIndex::ReadFilterFromDisk(const FlatFilePos& pos, const uint256&
std::vector<uint8_t> encoded_filter;
try {
filein >> block_hash >> encoded_filter;
if (Hash(encoded_filter) != hash) return error("Checksum mismatch in filter decode.");
if (Hash(encoded_filter) != hash) {
return error("Checksum mismatch in filter decode.");
}
filter = BlockFilter(GetFilterType(), block_hash, std::move(encoded_filter), /*skip_decode_check=*/true);
}
catch (const std::exception& e) {