style: apply code formatting across backend and frontend (#252)
Apply cargo fmt and prettier formatting to improve code readability. No functional changes. Changes: - Rust: multi-line assertion formatting (gemini_config, env_checker) - Rust: simplify chained method calls (provider) - TypeScript: add trailing commas to function parameters (codexProviderPresets)
This commit is contained in:
@@ -863,10 +863,7 @@ impl ProviderService {
|
||||
|
||||
let env_map = read_gemini_env()?;
|
||||
let env_json = env_to_json(&env_map);
|
||||
let env_obj = env_json
|
||||
.get("env")
|
||||
.cloned()
|
||||
.unwrap_or_else(|| json!({}));
|
||||
let env_obj = env_json.get("env").cloned().unwrap_or_else(|| json!({}));
|
||||
|
||||
// 读取 settings.json 文件(MCP 配置等)
|
||||
let settings_path = get_gemini_settings_path();
|
||||
@@ -951,10 +948,7 @@ impl ProviderService {
|
||||
|
||||
let env_map = read_gemini_env()?;
|
||||
let env_json = env_to_json(&env_map);
|
||||
let env_obj = env_json
|
||||
.get("env")
|
||||
.cloned()
|
||||
.unwrap_or_else(|| json!({}));
|
||||
let env_obj = env_json.get("env").cloned().unwrap_or_else(|| json!({}));
|
||||
|
||||
// 读取 settings.json 文件(MCP 配置等)
|
||||
let settings_path = get_gemini_settings_path();
|
||||
|
||||
Reference in New Issue
Block a user