Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sabotack committed Nov 28, 2023
1 parent 62dc3c4 commit ffe19c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/ecdar_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,7 @@ impl EcdarApi for ConcreteEcdarApi {
let mut is_editor = false;
let access = match access {
Some(access) => {
if access.role == "Editor" {
is_editor = true;
} else {
is_editor = false;
}
is_editor = access.role == "Editor";
Some(access)
}
None => None,
Expand Down

0 comments on commit ffe19c7

Please sign in to comment.