Skip to content

client: New: ignore nil-Opt instead of panicking#52184

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:client_nil_ops
Mar 17, 2026
Merged

client: New: ignore nil-Opt instead of panicking#52184
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:client_nil_ops

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Mar 16, 2026

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

client: prevent panic when passing `nil` Opts to `client.New`.

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah changed the title client: New: ignore nil-Ops instead of panicking client: New: ignore nil-Opt instead of panicking Mar 16, 2026
Copy link
Copy Markdown
Contributor

@vvoland vvoland left a comment

Choose a reason for hiding this comment

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

Do we need a changelog entry?

@thaJeztah
Copy link
Copy Markdown
Member Author

Not sure if we strictly need; I think it's a minor bug-fix; people would already have discovered if they passed a nil option 😂

@thaJeztah
Copy link
Copy Markdown
Member Author

well; guess it wouldn't hurt either; added one, but fine to skip if it's not important enough 😂

@thaJeztah thaJeztah merged commit 1da6517 into moby:master Mar 17, 2026
224 of 229 checks passed
@thaJeztah thaJeztah deleted the client_nil_ops branch March 17, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants