Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Yoda style conditions in Go code #12385

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

alexandear
Copy link
Contributor

The PR replaces Yoda style conditions nil == err with err == nil, nil != err with err != nil across Go code. It's because err != nil is more idiomatic.

@alexandear alexandear changed the title :recycle Refactor Go to err != nil, err == nil Refactor Go Yoda style conditions to err != nil, err == nil Sep 3, 2024
@alexandear alexandear changed the title Refactor Go Yoda style conditions to err != nil, err == nil Refactor Yoda style conditions in Go code Sep 3, 2024
@88250 88250 added the Refactor label Sep 4, 2024
@88250 88250 added this to the 3.1.6 milestone Sep 4, 2024
@88250 88250 merged commit b100721 into siyuan-note:dev Sep 4, 2024
2 checks passed
@88250
Copy link
Member

88250 commented Sep 4, 2024

感谢你的贡献,思源有你更精彩!
Thank you for your contribution. SiYuan will be more wonderful with you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants