Skip to content

Commit 75b404a

Browse files
authored
Remove incorrect negation.
1 parent 2812236 commit 75b404a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub async fn user_has_perms_cache(
229229
permissions: Permissions,
230230
) -> Result<()> {
231231
if match user_has_perms(cache, channel_id, guild_id, permissions).await {
232-
Err(Error::Model(err)) => !err.is_cache_err(),
232+
Err(Error::Model(err)) => err.is_cache_err(),
233233
result => result?,
234234
} {
235235
Ok(())

0 commit comments

Comments
 (0)