summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/utils
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-02-11 22:55:56 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-02-11 23:01:56 +0100
commit78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e (patch)
tree12fdfd2472f66e68081a89b0019621c1b8a1586c /pkg/api/handlers/utils
parent69ab67bf90aa4bbd285f360e3bca4c85b6028908 (diff)
downloadpodman-78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e.tar.gz
podman-78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e.tar.bz2
podman-78c8a87362ee27ba1d2a62b7c9d73adc313c7d7e.zip
Enable whitespace linter
Use the whitespace linter and fix the reported problems. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/api/handlers/utils')
-rw-r--r--pkg/api/handlers/utils/containers.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/api/handlers/utils/containers.go b/pkg/api/handlers/utils/containers.go
index f281c616d..ba202cad0 100644
--- a/pkg/api/handlers/utils/containers.go
+++ b/pkg/api/handlers/utils/containers.go
@@ -140,7 +140,6 @@ func WaitContainerLibpod(w http.ResponseWriter, r *http.Request) {
type containerWaitFn func(conditions ...define.ContainerStatus) (int32, error)
func createContainerWaitFn(ctx context.Context, containerName string, interval time.Duration) containerWaitFn {
-
runtime := ctx.Value("runtime").(*libpod.Runtime)
var containerEngine entities.ContainerEngine = &abi.ContainerEngine{Libpod: runtime}
@@ -169,7 +168,6 @@ func isValidDockerCondition(cond string) bool {
}
func waitDockerCondition(ctx context.Context, containerName string, interval time.Duration, dockerCondition string) (int32, error) {
-
containerWait := createContainerWaitFn(ctx, containerName, interval)
var err error