new: avoid manual unwrap() call

This commit is contained in:
Benjamin Tan 2024-04-05 19:36:59 +08:00
parent ccf25a5d56
commit a45a505b66

View file

@ -203,7 +203,7 @@ Please use `jj new 'all:x|y'` instead of `jj new --allow-large-revsets x y`.",
writeln!(formatter)?;
}
} else {
tx.edit(&new_commit).unwrap();
tx.edit(&new_commit)?;
// The description of the new commit will be printed by tx.finish()
}
if num_rebased > 0 {