Skip to content

Commit

Permalink
Return early from generateFriendChangeEvents for irrelevant events
Browse files Browse the repository at this point in the history
  • Loading branch information
Sambigeara committed Dec 27, 2021
1 parent a20a733 commit 7e15b14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/service/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ func (r *DBListRepo) generateFriendChangeEvents(e EventLog, item *ListItem) {
}
case DeleteEvent:
friendToRemove = before
default:
return
}

key, _ := e.getKeys()
Expand Down

0 comments on commit 7e15b14

Please sign in to comment.