Skip to content

Commit

Permalink
fix: small fix to objc class ivar formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Dec 14, 2023
1 parent bc9049c commit 5bc0899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/objc/class.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5bc0899

Please sign in to comment.