Skip to content

Commit dde4728

Browse files
committed
Format return expression
1 parent 33f5f91 commit dde4728

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mirrord/agent/src/entrypoint.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -813,12 +813,11 @@ async fn clear_iptable_chain(ipv6: bool) -> Result<(), IPTablesError> {
813813

814814
if !SafeIpTables::list_mirrord_rules(&ipt).await?.is_empty() {
815815
let tables = SafeIpTables::load(ipt, false).await?;
816-
tables.cleanup().await?;
816+
tables.cleanup().await
817817
} else {
818818
trace!("No mirorrd rules found, skipping iptables cleanup.");
819+
Ok(())
819820
}
820-
821-
Ok(())
822821
}
823822

824823
/// Runs the current binary as a child process,

0 commit comments

Comments
 (0)