Skip to content

Commit 97f8b5e

Browse files
committed
Simplify template condition
1 parent e92f303 commit 97f8b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

type.go.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
{{- else -}}
2020

21-
{{if and $optional (not (isStructType $type))}}*{{end}}{{ get $typeMap $type }}
21+
{{if $optional}}*{{end}}{{ get $typeMap $type }}
2222

2323
{{- end -}}
2424
{{- end -}}

0 commit comments

Comments
 (0)