From 159b8f6b16896247ef37d54d7c67a5a6d0e17f76 Mon Sep 17 00:00:00 2001 From: Steven Hartland Date: Tue, 23 Jul 2024 21:09:51 +0100 Subject: [PATCH] chore: remove unused params from defaultPreCreateHook Remove unused parameters from the defaultPreCreateHook function. --- docker.go | 2 +- lifecycle.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker.go b/docker.go index e89b9f4649..48eea08291 100644 --- a/docker.go +++ b/docker.go @@ -1088,7 +1088,7 @@ func (p *DockerProvider) CreateContainer(ctx context.Context, req ContainerReque // default hooks include logger hook and pre-create hook defaultHooks := []ContainerLifecycleHooks{ DefaultLoggingHook(p.Logger), - defaultPreCreateHook(ctx, p, req, dockerInput, hostConfig, networkingConfig), + defaultPreCreateHook(p, dockerInput, hostConfig, networkingConfig), defaultCopyFileToContainerHook(req.Files), defaultLogConsumersHook(req.LogConsumerCfg), defaultReadinessHook(), diff --git a/lifecycle.go b/lifecycle.go index a0c6b99b88..a3becbeb19 100644 --- a/lifecycle.go +++ b/lifecycle.go @@ -115,7 +115,7 @@ var DefaultLoggingHook = func(logger Logging) ContainerLifecycleHooks { } // defaultPreCreateHook is a hook that will apply the default configuration to the container -var defaultPreCreateHook = func(ctx context.Context, p *DockerProvider, req ContainerRequest, dockerInput *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig) ContainerLifecycleHooks { +var defaultPreCreateHook = func(p *DockerProvider, dockerInput *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig) ContainerLifecycleHooks { return ContainerLifecycleHooks{ PreCreates: []ContainerRequestHook{ func(ctx context.Context, req ContainerRequest) error {