diff options
Diffstat (limited to 'ripple')
-rw-r--r-- | ripple/fossil/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ripple/fossil/src/lib.rs b/ripple/fossil/src/lib.rs index 008240a..6576847 100644 --- a/ripple/fossil/src/lib.rs +++ b/ripple/fossil/src/lib.rs @@ -108,11 +108,10 @@ impl Store { buffer.extend_from_slice(&chunk); } - if buffer.is_empty() { - panic!("blob not found"); - } - if h.finalize() != r#ref { + if buffer.is_empty() { + panic!("blob not found"); + } panic!("hash mismatch"); } |