applied basic cargo clippy suggestions

This commit is contained in:
2026-01-15 17:21:40 +08:00
parent a20b363d07
commit f9b220c558
5 changed files with 13 additions and 19 deletions

View File

@@ -86,10 +86,8 @@ pub async fn open_doll_editor_window(doll_id: Option<String>) {
if let Err(e) = window.emit("edit-doll", id) {
error!("Failed to emit edit-doll event: {}", e);
}
} else {
if let Err(e) = window.emit("create-doll", ()) {
error!("Failed to emit create-doll event: {}", e);
}
} else if let Err(e) = window.emit("create-doll", ()) {
error!("Failed to emit create-doll event: {}", e);
}
return;