Skip to content

Commit b74db5a

Browse files
committed
ci: cargo fmt
1 parent 662e7cb commit b74db5a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/config_loader/process_detector.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ fn read_proc_environ_by_pid(pid: u32, grep_pattern: &str) -> Result<String> {
225225

226226
if proc_path.exists() {
227227
// Linux system
228-
let cmd = format!(
229-
"cat /proc/{pid}/environ | tr '\\0' '\\n' | grep -E '{grep_pattern}'"
230-
);
228+
let cmd = format!("cat /proc/{pid}/environ | tr '\\0' '\\n' | grep -E '{grep_pattern}'");
231229
execute_command(&cmd)
232230
} else {
233231
// If /proc doesn't exist or we can't access it
@@ -251,9 +249,7 @@ pub fn get_paths(env: Environment) -> Result<(PathBuf, PathBuf)> {
251249

252250
// Extract DORIS_HOME and JAVA_HOME
253251
let doris_home = extract_env_var(&environ, "DORIS_HOME").ok_or_else(|| {
254-
CliError::ConfigError(format!(
255-
"DORIS_HOME not found in {env} process environment"
256-
))
252+
CliError::ConfigError(format!("DORIS_HOME not found in {env} process environment"))
257253
})?;
258254

259255
let java_home =

0 commit comments

Comments
 (0)