Skip to content

Commit

Permalink
message/pipeline: add two Unalias calls
Browse files Browse the repository at this point in the history
Change-Id: I692c027e2b97ee5509a63a2c88265759fc766800
Reviewed-on: https://go-review.googlesource.com/c/text/+/645016
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
  • Loading branch information
adonovan authored and gopherbot committed Jan 28, 2025
1 parent d42948e commit 1e59086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message/pipeline/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ func (x *extracter) processGlobalVars() {
}
t := a.Type()
for {
p, ok := t.(*types.Pointer)
p, ok := types.Unalias(t).(*types.Pointer)
if !ok {
break
}
t = p.Elem()
}
if b, ok := t.(*types.Basic); !ok || b.Kind() != types.String {
if b, ok := types.Unalias(t).(*types.Basic); !ok || b.Kind() != types.String {
continue
}
x.visitInit(a, s.Val)
Expand Down

0 comments on commit 1e59086

Please sign in to comment.