From da1215b257e5f6f4ed934b570479521d14f065b1 Mon Sep 17 00:00:00 2001 From: Jonathan Cammisuli Date: Wed, 29 Nov 2023 13:48:53 -0500 Subject: [PATCH] fix(core): cleanup --- packages/nx/src/native/workspace/files_archive.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/nx/src/native/workspace/files_archive.rs b/packages/nx/src/native/workspace/files_archive.rs index 9517314f5f7e3..e04b50d941ee8 100644 --- a/packages/nx/src/native/workspace/files_archive.rs +++ b/packages/nx/src/native/workspace/files_archive.rs @@ -58,9 +58,11 @@ pub fn read_files_archive>(cache_dir: P) -> Option Some(archive), + Ok(archive) => { + trace!("read archive in {:?}", now.elapsed()); + Some(archive) + } Err(e) => { trace!("could not read files archive: {:?}", e); None @@ -77,9 +79,11 @@ pub fn write_files_archive>(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); }