Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(gossipsub): use
pop
instead of remove
Doesn't change any functionality but `pop` returns an `Option` whereas `remove` will panic on out-of-bounds. I am more comfortable with `pop` and a pattern match. Also, usage of `continue` allows us to not use an `else`. Pull-Request: #3734.
- Loading branch information