From 7a9b9325e95a95d4e95178ff05dd86f6c272caca Mon Sep 17 00:00:00 2001 From: sskserk Date: Mon, 25 Mar 2024 22:09:30 +0100 Subject: [PATCH] address comment --- openapi3gen/openapi3gen.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openapi3gen/openapi3gen.go b/openapi3gen/openapi3gen.go index a46bb9e22..a7f6fad4c 100644 --- a/openapi3gen/openapi3gen.go +++ b/openapi3gen/openapi3gen.go @@ -59,9 +59,7 @@ func UseAllExportedFields() Option { } func CreateTypeNameGenerator(tngnrt TypeNameGenerator) Option { - return func(x *generatorOpt) { - x.typeNameGenerator = tngnrt - } + return func(x *generatorOpt) { x.typeNameGenerator = tngnrt } } // ThrowErrorOnCycle changes the default behavior of creating cycle