diff --git a/src/controllers/github/secret_scanning.rs b/src/controllers/github/secret_scanning.rs index ccaf73517d8..19c5b27a8bf 100644 --- a/src/controllers/github/secret_scanning.rs +++ b/src/controllers/github/secret_scanning.rs @@ -236,7 +236,7 @@ async fn send_notification_email( reporter => "GitHub", source => alert.source, token_name => token.name, - url => if alert.url.is_empty() { "" } else { &alert.url } + url => &alert.url, }, )?;