mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-17 11:17:28 +03:00
chore(cli): remove unneeded create_dir_all call
This commit is contained in:
parent
873b9aee90
commit
ab29908aba
@ -344,8 +344,6 @@ fn rename_app(bin_path: &Path, product_name: Option<&str>) -> crate::Result<Path
|
|||||||
.join(&product_name)
|
.join(&product_name)
|
||||||
.with_extension(bin_path.extension().unwrap_or_default());
|
.with_extension(bin_path.extension().unwrap_or_default());
|
||||||
|
|
||||||
std::fs::create_dir_all(product_path.parent().unwrap())?;
|
|
||||||
|
|
||||||
rename(&bin_path, &product_path).with_context(|| {
|
rename(&bin_path, &product_path).with_context(|| {
|
||||||
format!(
|
format!(
|
||||||
"failed to rename `{}` to `{}`",
|
"failed to rename `{}` to `{}`",
|
||||||
|
Loading…
Reference in New Issue
Block a user