Skip to content

Commit 4c767fb

Browse files
committed
rustfmt
1 parent 88a3d9c commit 4c767fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sentry/src/access.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ pub async fn check_access(
3333

3434
// We're only sending a CLOSE
3535
// That's allowed for the creator normally, and for everyone during the withdraw period
36-
if events.iter().all(is_close_event) && (session.uid == channel.creator || is_in_withdraw_period) {
36+
if events.iter().all(is_close_event)
37+
&& (session.uid == channel.creator || is_in_withdraw_period)
38+
{
3739
return Ok(());
3840
}
3941

@@ -42,7 +44,6 @@ pub async fn check_access(
4244
return Err(Error::OnlyCreatorCanCloseChannel);
4345
}
4446

45-
4647
if current_time > channel.valid_until {
4748
return Err(Error::ChannelIsExpired);
4849
}

0 commit comments

Comments
 (0)