Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

refactor: use sindresorhus/defaults to simplify the code base #8

Merged
merged 4 commits into from
May 1, 2022

Conversation

breezewish
Copy link
Contributor

Thanks to https://github.com/sindresorhus/Defaults now it is possible to only write default value once! (Example)

There is also no more manual UserDefaults management. The change can be detected by using Defaults.observe (See GameRecordUpdater).

As a refactoring work, this PR does not introduce user-visible changes.

@vercel
Copy link

vercel bot commented Apr 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
paimon-menu-bar ✅ Ready (Inspect) Visit Preview May 1, 2022 at 0:07AM (UTC)

Copy link
Owner

@spencerwooo spencerwooo left a comment

Choose a reason for hiding this comment

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

👍

@spencerwooo spencerwooo merged commit 90c6373 into spencerwooo:main May 1, 2022
@breezewish breezewish deleted the defaults branch May 1, 2022 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants