Skip to content

Commit 5f1993e

Browse files
authored
fix: remove unwrap in inline (#609)
Fixes #608
1 parent bb84e91 commit 5f1993e

File tree

1 file changed

+3
-1
lines changed
  • crates/figterm/src/inline

1 file changed

+3
-1
lines changed

crates/figterm/src/inline/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ pub async fn handle_request(
240240
},
241241
};
242242

243-
let prompt = prompt(&history, buffer).unwrap();
243+
let Some(prompt) = prompt(&history, buffer) else {
244+
return;
245+
};
244246

245247
let input = RecommendationsInput {
246248
file_context: FileContext {

0 commit comments

Comments
 (0)