From a45a505b6679bf0b1f6dc97a37c4c4565e7348e2 Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Fri, 5 Apr 2024 19:36:59 +0800 Subject: [PATCH] new: avoid manual `unwrap()` call --- cli/src/commands/new.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/new.rs b/cli/src/commands/new.rs index 9655b7bb5..d6caccba4 100644 --- a/cli/src/commands/new.rs +++ b/cli/src/commands/new.rs @@ -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 {