From 7e0f52a58859850bf30fb4f61f6b4944db74aa4d Mon Sep 17 00:00:00 2001 From: Bevan Arps Date: Mon, 30 Sep 2024 10:24:28 +1300 Subject: [PATCH] Code gardening --- .../internal/functions/one_of_json_marshal_function.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/v2/tools/generator/internal/functions/one_of_json_marshal_function.go b/v2/tools/generator/internal/functions/one_of_json_marshal_function.go index bdccec5c555..693b722705b 100644 --- a/v2/tools/generator/internal/functions/one_of_json_marshal_function.go +++ b/v2/tools/generator/internal/functions/one_of_json_marshal_function.go @@ -25,8 +25,14 @@ type OneOfJSONMarshalFunction struct { } // NewOneOfJSONMarshalFunction creates a new OneOfJSONMarshalFunction struct -func NewOneOfJSONMarshalFunction(oneOfObject *astmodel.ObjectType, idFactory astmodel.IdentifierFactory) *OneOfJSONMarshalFunction { - return &OneOfJSONMarshalFunction{oneOfObject, idFactory} +func NewOneOfJSONMarshalFunction( + oneOfObject *astmodel.ObjectType, + idFactory astmodel.IdentifierFactory, +) *OneOfJSONMarshalFunction { + return &OneOfJSONMarshalFunction{ + oneOfObject, + idFactory, + } } // Ensure OneOfJSONMarshalFunction implements Function interface correctly