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

*: prevent panic#1767

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

Open
swills wants to merge1 commit intogo-git:main
base:main
Choose a base branch
Loading
fromswills:prevent-nil-options-panics

Conversation

@swills
Copy link
Contributor

Prevent panics if *Options are nil by adding checks in validators. Set default values where appropriate.

Fixes#1051

Hopefully I interpreted the discussion in#1051 properly and this is what is expected here. Please let me know if not.

Prevent panics if *Options are nil by adding checks in validators. Setdefault values where appropriate.
@swillsswillsforce-pushed theprevent-nil-options-panics branch fromb09d159 to91a9edaCompareDecember 1, 2025 01:55
@onee-only
Copy link
Contributor

In#1690 (comment),@pjbgf wrote:

I'm planning to raise an RFC on the subject of API consolidation which would affect this (and the general "WithOption" funcs), just haven't got around to it yet.

This may conflict with the upcoming API changes. If they introduce the new "WithOption" functions before the next release, these changes could be overwritten.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

(*Worktree).Commit will panic ifCommitOptions parameter is nil.

2 participants

@swills@onee-only

[8]ページ先頭

©2009-2025 Movatter.jp