Skip to content

Commit

Permalink
Use more modern style
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Huss <[email protected]>
  • Loading branch information
Mark-Simulacrum and ehuss authored Aug 24, 2024
1 parent 663c7a3 commit 0f059f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/handlers/relnotes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
};

Expand Down

0 comments on commit 0f059f3

Please sign in to comment.