diff options
| author | Sebastiaan van Stijn <thaJeztah@users.noreply.github.com> | 2022-09-28 15:39:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 15:39:15 +0200 |
| commit | 8d193d81af9cbbe800475d4bb8c529d67a6d8f14 (patch) | |
| tree | d781813d37e691ff8538d314e9618805846ecc66 /api/server | |
| parent | db1663a1e5457566d0390ce20bec63f9fffec5f9 (diff) | |
| parent | 8a2e1245d42d3fb1d27e61b83774354129eb123a (diff) | |
| download | docker-8d193d81af9cbbe800475d4bb8c529d67a6d8f14.tar.gz | |
Merge pull request #44211 from thaJeztah/more_linters_step1
fix (whitespace) formatting in preparation of enabling more linters
Diffstat (limited to 'api/server')
| -rw-r--r-- | api/server/middleware/version.go | 1 | ||||
| -rw-r--r-- | api/server/router/build/build_routes.go | 1 | ||||
| -rw-r--r-- | api/server/router/swarm/helpers_test.go | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/api/server/middleware/version.go b/api/server/middleware/version.go index 424f3b5983..1a4b3bedef 100644 --- a/api/server/middleware/version.go +++ b/api/server/middleware/version.go @@ -61,5 +61,4 @@ func (v VersionMiddleware) WrapHandler(handler func(ctx context.Context, w http. ctx = context.WithValue(ctx, httputils.APIVersionKey{}, apiVersion) return handler(ctx, w, r, vars) } - } diff --git a/api/server/router/build/build_routes.go b/api/server/router/build/build_routes.go index 2ecdef2587..a227a1d779 100644 --- a/api/server/router/build/build_routes.go +++ b/api/server/router/build/build_routes.go @@ -237,7 +237,6 @@ func (br *buildRouter) postBuild(ctx context.Context, w http.ResponseWriter, r * defer func() { _ = output.Close() }() errf := func(err error) error { - if httputils.BoolValue(r, "q") && notVerboseBuffer.Len() > 0 { _, _ = output.Write(notVerboseBuffer.Bytes()) } diff --git a/api/server/router/swarm/helpers_test.go b/api/server/router/swarm/helpers_test.go index 87fa220125..ba71693df9 100644 --- a/api/server/router/swarm/helpers_test.go +++ b/api/server/router/swarm/helpers_test.go @@ -115,5 +115,4 @@ func TestAdjustForAPIVersion(t *testing.T) { if len(spec.TaskTemplate.ContainerSpec.Ulimits) != 0 { t.Error("Ulimits were not stripped from spec") } - } |
