Skip to content

Commit 97d28e4

Browse files
committed
f Remove nread debug_assert
1 parent 6d32561 commit 97d28e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning-persister/src/fs_store.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ impl KVStore for FilesystemStore {
8383

8484
let mut buf = Vec::with_capacity(DEFAULT_BUF_SIZE);
8585
let mut f = fs::File::open(dest_file_path)?;
86-
let nread = f.read_to_end(&mut buf)?;
87-
debug_assert_ne!(nread, 0);
88-
86+
f.read_to_end(&mut buf)?;
8987
Ok(buf)
9088
}
9189

0 commit comments

Comments
 (0)