Skip to content

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

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

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

Conversation

@thaJeztah

@thaJeztah thaJeztah commented Mar 16, 2026

Copy link
Copy Markdown
Member

- 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)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah changed the title client: New: ignore nil-Ops instead of panicking client: New: ignore nil-Opt instead of panicking Mar 16, 2026

@vvoland vvoland left a comment

Copy link
Copy Markdown
Contributor

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