fix(admin): clippy collapsible_if -> let-chain
CI / test (push) Successful in 11m44s

This commit is contained in:
2026-06-24 07:02:25 +00:00
parent 4de5628b05
commit e81fa05c40
+4 -4
View File
@@ -175,10 +175,10 @@ async fn update(State(st): State<AppState>, Form(form): Form<ConfigForm>) -> Res
*st.client.write().await = new_client;
*st.config.write().await = cfg.clone();
if let Some(path) = &st.config_path {
if let Err(e) = cfg.save(path) {
tracing::error!("Config konnte nicht gespeichert werden: {e}");
}
if let Some(path) = &st.config_path
&& let Err(e) = cfg.save(path)
{
tracing::error!("Config konnte nicht gespeichert werden: {e}");
}
Html(render(&cfg, true).into_string()).into_response()