Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
makotech222 committed Jul 26, 2022
1 parent eab6439 commit d382ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/api/src/site/mod_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl Perform for GetModlog {
let community_id = data.community_id;

let site = blocking(context.pool(), Site::read_local_site).await??;
let is_admin = is_admin(&local_user_view.as_ref().expect("")).is_ok();
let is_admin = is_admin(local_user_view.as_ref().expect("")).is_ok();
let is_mod_of_community = data.community_id.is_some()
&& is_mod_or_admin(
context.pool(),
Expand Down

0 comments on commit d382ddd

Please sign in to comment.