aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/require.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/require.rs')
-rw-r--r--crates/mozart/src/commands/require.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/mozart/src/commands/require.rs b/crates/mozart/src/commands/require.rs
index 16d865f..ef5ff04 100644
--- a/crates/mozart/src/commands/require.rs
+++ b/crates/mozart/src/commands/require.rs
@@ -679,9 +679,10 @@ pub async fn execute(
eprintln!("Warning: Failed to revert composer.json: {revert_err}");
}
if let Some(ref lock_content) = original_composer_lock
- && let Err(revert_err) = std::fs::write(&lock_path_for_backup, lock_content) {
- eprintln!("Warning: Failed to revert composer.lock: {revert_err}");
- }
+ && let Err(revert_err) = std::fs::write(&lock_path_for_backup, lock_content)
+ {
+ eprintln!("Warning: Failed to revert composer.lock: {revert_err}");
+ }
}
return Err(mozart_core::exit_code::bail(
mozart_core::exit_code::DEPENDENCY_RESOLUTION_FAILED,