Cleanup (unused function; formatting)

GitOrigin-RevId: 5d2afc92c199f066b2b6891c19eac9ba8e98d4f3
This commit is contained in:
Roman Shevchenko
2024-09-10 22:33:24 +02:00
committed by intellij-monorepo-bot
parent 47027cf16c
commit 0ff8dec366
2 changed files with 2 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ pub fn download_cef(version: &str, platform: &str, working_dir: &Path) -> Result
#[cfg(target_os = "windows")]
fn download_to_file(client: &Client, src: &str, dest: &Path) -> Result<()> {
fs_remove(dest)?;
fs_remove(dest)?;
trace!("Downloading {src} to {dest:?}");
let mut response = client.get(src).send()?.error_for_status()?;

View File

@@ -144,6 +144,7 @@ mod tests {
check_env_variable(&test, &env, "INTELLIJ_ORIGINAL_ENV_FONTCONFIG_PATH", "/some/existing/path".to_string());
}
#[cfg(target_os = "linux")]
fn check_env_variable(test: &TestEnvironment, env: &HashMap<&str, &str>, variable_name: &str, expected_value: String) {
let remote_dev_command = &["printEnvVar", variable_name];
let launch_result = run_launcher_ext(&test, LauncherRunSpec::remote_dev().with_env(env).with_args(remote_dev_command));