Skip to content

Simplify BaseController#unsubscribe return statement#127

Merged
whymarrh merged 2 commits intoMetaMask:developfrom
whymarrh:simplify-unsubscribe
Jul 2, 2019
Merged

Simplify BaseController#unsubscribe return statement#127
whymarrh merged 2 commits intoMetaMask:developfrom
whymarrh:simplify-unsubscribe

Conversation

@whymarrh
Copy link
Copy Markdown
Contributor

This PR simplifies the return statement in BaseController#unsubscribe where we were previously testing a boolean and returning the same value.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #127 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #127   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           21     21           
  Lines         1432   1432           
  Branches       194    193    -1     
======================================
  Hits          1432   1432
Impacted Files Coverage Δ
src/BaseController.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fcdf82f...22434da. Read the comment docs.

Copy link
Copy Markdown
Contributor

@bitpshr bitpshr left a comment

Choose a reason for hiding this comment

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

Good catch.

@whymarrh whymarrh merged commit f9cbda2 into MetaMask:develop Jul 2, 2019
@whymarrh whymarrh deleted the simplify-unsubscribe branch July 2, 2019 19:13
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
Bumps [@metamask/utils](https://github.com/MetaMask/utils) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/MetaMask/utils/releases)
- [Changelog](https://github.com/MetaMask/utils/blob/main/CHANGELOG.md)
- [Commits](MetaMask/utils@v3.4.0...v3.4.1)

---
updated-dependencies:
- dependency-name: "@metamask/utils"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
Not all of the types within `./src/utils/cache.ts` seemed to be solely
related to caching. These have been extracted to a separate file, and
the main file has been updated to export `SafeEventEmitterProvider` from
this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants