Skip to content

Commit 94e96cb

Browse files
GeekMasherowen-mc
andauthored
Update go/ql/lib/semmle/go/frameworks/GoMicro.qll
Co-authored-by: Owen Mansel-Chan <[email protected]>
1 parent 3cc5ba1 commit 94e96cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/lib/semmle/go/frameworks/GoMicro.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module GoMicro {
4040
te.getDeclaration().getLocation().getFile() instanceof ProtocGeneratedFile and
4141
exists(MethodDecl md |
4242
md.getName() = "ProtoMessage" and
43-
this = md.getReceiverDecl().getTypeExpr().getAChild().(TypeName).getType()
43+
this = md.getReceiverType().(PointerType).getBaseType()
4444
)
4545
)
4646
}

0 commit comments

Comments
 (0)