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 7fb37ff204
commit 6c0faa29f3
1 changed files with 1 additions and 5 deletions

View File

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