remove redundant pattern matching

This commit is contained in:
daniel.eades 2023-11-16 17:34:08 +00:00 committed by Ashley Wulber
parent 12ef9ce993
commit 6cb69bc63b
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ async fn start_listening(
.unwrap_or_default()
{
if c.id().await.unwrap_or_default() == ssid {
if let Ok(_) = network_manager.deactivate_connection(&c).await {
if network_manager.deactivate_connection(&c).await.is_ok() {
success = true;
if let Ok(ActiveConnectionState::Deactivated) = c.state().await {
break;