Skip to content

Commit

Permalink
fix(core): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Nov 30, 2023
1 parent c2657ff commit da1215b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/nx/src/native/workspace/files_archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ pub fn read_files_archive<P: AsRef<Path>>(cache_dir: P) -> Option<NxFilesArchive
.map_err(anyhow::Error::from)
});

trace!("read archive in {:?}", now.elapsed());
match bytes {
Ok(archive) => Some(archive),
Ok(archive) => {
trace!("read archive in {:?}", now.elapsed());
Some(archive)
}
Err(e) => {
trace!("could not read files archive: {:?}", e);
None
Expand All @@ -77,9 +79,11 @@ pub fn write_files_archive<P: AsRef<Path>>(cache_dir: P, files: NxFilesArchive)
std::fs::write(archive_path, encoded)?;
Ok(())
});
trace!("write archive in {:?}", now.elapsed());

match result {
Ok(_) => (),
Ok(_) => {
trace!("write archive in {:?}", now.elapsed());
}
Err(e) => {
trace!("could not write files archive: {:?}", e);
}
Expand Down

0 comments on commit da1215b

Please sign in to comment.