Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: remove unsafe non-null assertions to prevent race condition#205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fioan89 merged 1 commit intomainfromrefactor-unsafe-not-null-assertions
Oct 7, 2025

Conversation

fioan89
Copy link
Collaborator

Replace !! operators with safe idiom takeIf/let chains. The non-null assertions were unsafe in concurrent scenarios where one thread could potentially modify the settings while another thread reads and makes non-null assertions.

Replace !! operators with safe idiom takeIf/let chains.The non-null assertions were unsafe in concurrent scenarios where onethread could potentially modify the settings while another threadreads and makes non-null assertions.
Copy link
Member

@code-ashercode-asher left a comment

Choose a reason for hiding this comment

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

love it

@fioan89fioan89 merged commita8bff3e intomainOct 7, 2025
6 checks passed
@fioan89fioan89 deleted the refactor-unsafe-not-null-assertions branchOctober 7, 2025 18:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@f0sself0sself0ssel approved these changes

@jcjiangjcjiangjcjiang approved these changes

@code-ashercode-ashercode-asher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@fioan89@f0ssel@jcjiang@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp