Remove dummy variable declaration for context.Context from generated go code (#11641)

Originally, this dummy declaration was needed because there was the
possibility of the generated code doesn't use `context.Context` and then
if it imported that package, go compiler complains that and makes an error.
ref: 3ed1aa8e79/modules/swagger-codegen/src/main/resources/go/api.mustache (L30)

However, now this dummy placement is no longer needed because the
generated code always uses `context.Context`.

Signed-off-by: moznion <moznion@mail.moznion.net>
This commit is contained in:
moznion
2022-02-17 19:34:05 -08:00
committed by GitHub
parent 9517a9525b
commit d6a97b0c39
17 changed files with 10 additions and 61 deletions

View File

@@ -18,10 +18,6 @@ import (
"net/url"
)
// Linger please
var (
_ context.Context
)
// UsageApiService UsageApi service
type UsageApiService service