From 5bc089980730819744da2c1b4b664c13374cdae2 Mon Sep 17 00:00:00 2001 From: blacktop Date: Thu, 14 Dec 2023 11:37:40 -0700 Subject: [PATCH] fix: small fix to objc class ivar formatting --- types/objc/class.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/objc/class.go b/types/objc/class.go index 7b7e7e8..8e7d1fb 100644 --- a/types/objc/class.go +++ b/types/objc/class.go @@ -150,7 +150,9 @@ func (c *Class) dump(verbose, addrs bool) string { } class += fmt.Sprintf("<%s>", strings.Join(subProts, ", ")) } - class += fmt.Sprintf(" {") + if len(c.Ivars) > 0 { + class += fmt.Sprintf(" {") + } if verbose { var comment string if addrs {