From 7236c8c4f8dcdb246f6e9d96e0dd82057b7d3aa6 Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Tue, 24 Oct 2023 18:15:47 +0300 Subject: [PATCH] chore(gen/ir): fix lint issues --- gen/ir/json.go | 2 +- gen/ir/template_helpers.go | 2 +- gen/ir/type.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/ir/json.go b/gen/ir/json.go index dd91f23e3..167f4f40d 100644 --- a/gen/ir/json.go +++ b/gen/ir/json.go @@ -209,7 +209,7 @@ func jsonType(t *Type) string { return "Number" } if t.Is(KindArray) { - return _array + return arraySuffix } if t.Is(KindStruct, KindMap) { return "Object" diff --git a/gen/ir/template_helpers.go b/gen/ir/template_helpers.go index a4e813efb..7dc8dd178 100644 --- a/gen/ir/template_helpers.go +++ b/gen/ir/template_helpers.go @@ -12,7 +12,7 @@ import ( func (t *Type) EncodeFn() string { if t.Is(KindArray) && t.Item.EncodeFn() != "" { - return t.Item.EncodeFn() + _array + return t.Item.EncodeFn() + arraySuffix } switch t.Primitive { case ByteSlice: diff --git a/gen/ir/type.go b/gen/ir/type.go index 1372cb8c3..225149a58 100644 --- a/gen/ir/type.go +++ b/gen/ir/type.go @@ -242,7 +242,7 @@ func (t *Type) NamePostfix() string { return t.Primitive.String() } case KindArray: - return t.Item.NamePostfix() + _array + return t.Item.NamePostfix() + arraySuffix case KindAny: return "Any" case KindPointer: