1
0
Fork 0

code quality improvement

This commit is contained in:
Kim, Jimin 2022-01-31 10:08:55 +09:00
parent 139db86f97
commit 72b09cc383
2 changed files with 5 additions and 5 deletions

View file

@ -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(());
};
}

View file

@ -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 {