Skip to content

Commit

Permalink
fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Aug 10, 2023
1 parent b6141aa commit 66da3d8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/private_forest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ impl<'a> PrivateDirectoryHelper<'a> {
let mut stream = file.stream_content(index, &forest, &mut self.store);
while let Some(block) = stream.next().await {
if block.is_ok() {
let write_result = local_file_handler.write_all(&block.unwrap());
let write_result =
local_file_handler.write_all(&block.unwrap());
if write_result.is_err() {
trace!("wnfsError occured in read_filestream_to_path on write_result: {:?}", write_result.as_ref().err().unwrap().to_string());
}
Expand All @@ -735,12 +736,7 @@ impl<'a> PrivateDirectoryHelper<'a> {
"wnfsError occured in read_filestream_to_path on file_res: {:?}",
block.as_ref().err().unwrap().to_string()
);
return Err(
block
.err()
.unwrap()
.to_string()
)
return Err(block.err().unwrap().to_string());
}
//stream_content.extend_from_slice(&block.unwrap());
}
Expand Down

0 comments on commit 66da3d8

Please sign in to comment.