diff --git a/src/digital_ocean.rs b/src/digital_ocean.rs index 9668051e..2cd9433a 100644 --- a/src/digital_ocean.rs +++ b/src/digital_ocean.rs @@ -98,13 +98,8 @@ impl DigitalOceanClient { ip_address, }); } - Err(err) => { - if skip_if_no_ip { - continue; - } else { - return Err(err); - } - } + Err(_) if skip_if_no_ip => continue, + Err(err) => return Err(err), } }