refactor: remove explicit lock drop at the end of scope

This commit is contained in:
link2xt
2025-05-18 23:02:49 +00:00
committed by l
parent 014b0024a0
commit 235b625f71

View File

@@ -241,7 +241,6 @@ pub(crate) async fn maybe_network_lost(context: &Context, stores: Vec<Connectivi
) {
*connectivity_lock = DetailedConnectivity::Error("Connection lost".to_string());
}
drop(connectivity_lock);
}
context.emit_event(EventType::ConnectivityChanged);
}