code quality improvement
This commit is contained in:
parent
139db86f97
commit
72b09cc383
2 changed files with 5 additions and 5 deletions
|
@ -3,12 +3,12 @@ use super::InstallErr;
|
|||
|
||||
pub async fn clean(game_path: &str) -> Result<(), InstallErr> {
|
||||
match util::uninstall(game_path) {
|
||||
Ok(_) => {}
|
||||
Ok(_) => {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Err(_) => {
|
||||
return Err(InstallErr::RemoveOldFilesFailed);
|
||||
}
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
};
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ pub async fn install(game_path: String) -> Result<(), InstallErr> {
|
|||
let game_path = game_path.as_str();
|
||||
|
||||
//
|
||||
//
|
||||
// Remove existing files
|
||||
//
|
||||
|
||||
match clean::clean(game_path).await {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue