Skip to content

Commit

Permalink
fix: completion is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG committed Apr 22, 2023
1 parent 8db3e4e commit 5b1a141
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/dal/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ impl DatabendDriver {
now.elapsed().as_secs()
);

Ok(vec![completion])
if completion.is_empty() {
Ok(vec![])
} else {
Ok(vec![completion])
}
}
}

0 comments on commit 5b1a141

Please sign in to comment.