diff --git a/src/check.rs b/src/check.rs index 86eb510..2e6a5e7 100644 --- a/src/check.rs +++ b/src/check.rs @@ -130,13 +130,7 @@ pub async fn get_updates( .map(|image| &image.parts.registry) .unique() .filter(|®istry| match ctx.config.registries.get(registry) { - Some(config) => { - if config.ignore { - false - } else { - true - } - } + Some(config) => !config.ignore, None => true, }) .collect::>(); diff --git a/src/registry.rs b/src/registry.rs index bc561a1..bfe5384 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -219,7 +219,7 @@ pub async fn get_extra_tags( ctx: &Context, client: &Client, ) -> Result<(Vec, Option), String> { - let response = client.get(url, &headers, false).await; + let response = client.get(url, headers, false).await; match response { Ok(res) => {