diff --git a/src/handlers/relnotes.rs b/src/handlers/relnotes.rs index 939f8f36..fee23681 100644 --- a/src/handlers/relnotes.rs +++ b/src/handlers/relnotes.rs @@ -28,9 +28,7 @@ struct RelnotesState { } pub async fn handle(ctx: &Context, event: &Event) -> anyhow::Result<()> { - let e = if let Event::Issue(e) = event { - e - } else { + let Event::Issue(e) = event else { return Ok(()); };