Skip to content

Commit

Permalink
fix(session): fix PROMPT_SQL unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jul 3, 2024
1 parent fbb976e commit 4901abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ impl Session {
let rows = conn.query_iter(PROMPT_SQL).await;
match rows {
Ok(mut rows) => {
while let Some(row) = rows.next().await {
let name: (String,) = row.unwrap().try_into().unwrap();
while let Some(Ok(row)) = rows.next().await {
let name: (String,) = row.try_into().unwrap();
keywords.push(name.0);
}
}
Expand Down

0 comments on commit 4901abb

Please sign in to comment.