Update src/api/channels/channels.rs

Co-authored-by: SpecificProtagonist <specificprotagonist@posteo.org>
This commit is contained in:
Flori 2023-06-22 19:42:07 +02:00 committed by GitHub
parent 1e0783e30e
commit f554244143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -88,11 +88,7 @@ impl Channel {
user,
crate::api::limits::LimitType::Channel,
)
.await
{
Ok(channel) => channel,
Err(e) => return Err(e),
};
.await?;
let _ = std::mem::replace(self, new_channel);
Ok(())
}