Skip to content

Commit 3228edf

Browse files
committed
remove except in reword component open function
1 parent 0c41bdc commit 3228edf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/reword.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ impl RewordComponent {
111111
///
112112
pub fn open(&mut self, id: CommitId) -> Result<()> {
113113
self.commit_id = Some(id);
114-
let commit = sync::get_commit_details(CWD, id)?;
115-
self.input.set_text(commit.message.expect("").combine());
114+
if let Some(commit_msg) =
115+
sync::get_commit_details(CWD, id)?.message
116+
{
117+
self.input.set_text(commit_msg.combine());
118+
}
116119
self.show()?;
117120

118121
Ok(())

0 commit comments

Comments
 (0)