Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

eth_uninstallFilter should return false for non-existent filter #8280

Merged
merged 2 commits into from
Mar 31, 2018

Conversation

sorpaas
Copy link
Collaborator

@sorpaas sorpaas commented Mar 31, 2018

Fixes #7783

@parity-cla-bot
Copy link

It looks like @sorpaas signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

Copy link
Collaborator

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

pub fn remove_poll(&mut self, id: &PollId) {
self.polls.remove(id);
pub fn remove_poll(&mut self, id: &PollId) -> bool {
match self.polls.remove(id) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.polls.remove(id).is_some() should suffice.

@tomusdrw tomusdrw added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. M4-core ⛓ Core client code / Rust. labels Mar 31, 2018
@tomusdrw tomusdrw merged commit 1e6d889 into openethereum:master Mar 31, 2018
@5chdn 5chdn added this to the 1.11 milestone Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants