Skip to content

Commit

Permalink
chore: Change return signature to remove bool
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 27, 2023
1 parent 6f01731 commit 66f754d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extensions/warp-ipfs/src/store/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ impl MessageStore {
events: &MessagingEvents,
direction: MessageDirection,
opt: EventOpt,
) -> Result<bool, Error> {
) -> Result<(), Error> {
let tx = self.get_conversation_sender(conversation_id).await?;

let mut document = self.conversations.get(conversation_id).await?;
Expand Down Expand Up @@ -1003,7 +1003,7 @@ impl MessageStore {
let event = match state {
PinState::Pin => {
if message.pinned() {
return Ok(false);
return Ok(());
}
*message.pinned_mut() = true;
MessageEventKind::MessagePinned {
Expand All @@ -1013,7 +1013,7 @@ impl MessageStore {
}
PinState::Unpin => {
if !message.pinned() {
return Ok(false);
return Ok(());
}
*message.pinned_mut() = false;
MessageEventKind::MessageUnpinned {
Expand Down Expand Up @@ -1210,7 +1210,7 @@ impl MessageStore {
}
if let Some(current_name) = document.name() {
if current_name.eq(&name) {
return Ok(false);
return Ok(());
}
}

Expand All @@ -1228,7 +1228,7 @@ impl MessageStore {
}
_ => {}
}
Ok(false)
Ok(())
}

async fn end_task(&self, conversation_id: Uuid) {
Expand Down

0 comments on commit 66f754d

Please sign in to comment.