diff --git a/src/agent/src/image_rpc.rs b/src/agent/src/image_rpc.rs index 1dcf98e49b..0a66987cb2 100644 --- a/src/agent/src/image_rpc.rs +++ b/src/agent/src/image_rpc.rs @@ -263,7 +263,8 @@ impl ImageService { if Path::new(SKOPEO_PATH).exists() { // Read the policy path from the agent config let config_policy_path = &AGENT_CONFIG.read().await.container_policy_path; - let policy_path = (!config_policy_path.is_empty()).then(|| config_policy_path.as_str()); + let policy_path = + (!config_policy_path.is_empty()).then_some(config_policy_path.as_str()); Self::pull_image_from_registry(image, &cid, source_creds, policy_path, aa_kbc_params)?; Self::unpack_image(&cid)?; } else {