diff --git a/src/main.rs b/src/main.rs index 8c40269..b7dfdee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,8 +107,7 @@ fn main() -> Result<(), Box> { match git_diff_output { Ok(output) => { - if !output.stdout.is_empty() { - // There are changes, proceed with git commit + if output.stdout.is_empty() { let commit_output = Command::new("git") .arg("commit") .arg("-m") @@ -135,7 +134,6 @@ fn main() -> Result<(), Box> { } } } else { - // No changes to commit println!("No changes to commit. Working tree clean."); } }