Skip to content

Commit

Permalink
chore(gen/ir): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev authored and tdakkota committed Oct 25, 2023
1 parent c89386a commit 7236c8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gen/ir/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gen/ir/template_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion gen/ir/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7236c8c

Please sign in to comment.