Skip to content

Commit 6a4b69a

Browse files
committed
Fix bugs
1 parent 6b37a48 commit 6a4b69a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

structuralpatterns/proxy/proxy_printer.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ func NewProxyPrinter(name string) *ProxyPrinter {
2626

2727
func (p *ProxyPrinter) GetName() string {
2828
// ˅
29-
return p.currentName
29+
if p.real != nil {
30+
return p.real.GetName()
31+
} else {
32+
return p.currentName
33+
}
3034
// ˄
3135
}
3236

0 commit comments

Comments
 (0)