From 5b1a14152300aad68b9d84151fa328b11e01eb86 Mon Sep 17 00:00:00 2001 From: BohuTANG Date: Sat, 22 Apr 2023 19:46:36 +0800 Subject: [PATCH] fix: completion is empty --- app/src/dal/db.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/dal/db.rs b/app/src/dal/db.rs index fa8401f..32a3a41 100644 --- a/app/src/dal/db.rs +++ b/app/src/dal/db.rs @@ -244,6 +244,10 @@ impl DatabendDriver { now.elapsed().as_secs() ); - Ok(vec![completion]) + if completion.is_empty() { + Ok(vec![]) + } else { + Ok(vec![completion]) + } } }