Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(core): drop needless return in test secret key path

t8y2ab468350eca5
diff --git a/crates/dbx-core/src/persistence/secret_codec.rs b/crates/dbx-core/src/persistence/secret_codec.rs
index acb9ecb3e8..f59470b761 100644
--- a/crates/dbx-core/src/persistence/secret_codec.rs
+++ b/crates/dbx-core/src/persistence/secret_codec.rs
@@ -491,7 +491,7 @@ fn default_key_path() -> Option<std::path::PathBuf> {
// file; their auto-provisioned fallback lives in the system temp dir.
#[cfg(test)]
{
- return Some(std::env::temp_dir().join("dbx-test-secret.key"));
+ Some(std::env::temp_dir().join("dbx-test-secret.key"))
}
#[cfg(not(test))]
{