Skip to content

Commit

Permalink
network: WithCheckDuplicate: don't set CheckDuplicate value (#2589)
Browse files Browse the repository at this point in the history
Setting this value is a no-opt, as it's automatically set by the client,
and the field will be removed in the next release of the docker module,
so let's already remove it.

updates 6e086e8, which deprecated this
function.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jun 17, 2024
1 parent 77da736 commit 31788a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ func WithAttachable() CustomizeNetworkOption {
// Deprecated: CheckDuplicate is deprecated since API v1.44, but it defaults to true when sent by the client package to older daemons.
func WithCheckDuplicate() CustomizeNetworkOption {
return func(original *types.NetworkCreate) error {
//nolint:staticcheck
original.CheckDuplicate = true

return nil
}
}
Expand Down

0 comments on commit 31788a7

Please sign in to comment.