Skip to content

Commit 1e59086

Browse files
adonovangopherbot
authored andcommitted
message/pipeline: add two Unalias calls
Change-Id: I692c027e2b97ee5509a63a2c88265759fc766800 Reviewed-on: https://go-review.googlesource.com/c/text/+/645016 Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent d42948e commit 1e59086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

message/pipeline/extract.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ func (x *extracter) processGlobalVars() {
148148
}
149149
t := a.Type()
150150
for {
151-
p, ok := t.(*types.Pointer)
151+
p, ok := types.Unalias(t).(*types.Pointer)
152152
if !ok {
153153
break
154154
}
155155
t = p.Elem()
156156
}
157-
if b, ok := t.(*types.Basic); !ok || b.Kind() != types.String {
157+
if b, ok := types.Unalias(t).(*types.Basic); !ok || b.Kind() != types.String {
158158
continue
159159
}
160160
x.visitInit(a, s.Val)

0 commit comments

Comments
 (0)