Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed Dec 10, 2023
1 parent 8ac7029 commit 16f7c80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ impl ACLError {

/// `acl_type_t` string representation for error messages
pub(crate) fn op_display(flags: u32) -> &'static str {
if flags & FLAG_WRITE == 0 {
"reading"
} else {
if flags & FLAG_WRITE == FLAG_WRITE {
"writing"
} else {
"reading"
}
}

Expand Down

0 comments on commit 16f7c80

Please sign in to comment.