Skip to content

Commit cefb914

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@ module GoMicro {
5555
NamedType namedType;
5656

5757
ServiceInterfaceType() {
58-
exists(TypeEntity te |
59-
te.getType() = namedType and
60-
namedType.getUnderlyingType() = this and
61-
te.getDeclaration().getLocation().getFile() instanceof ProtocGeneratedFile
62-
)
58+
this = namedType.getUnderlyingType() and
59+
namedType.hasLocationInfo(any(ProtocGeneratedFile f).getAbsolutePath(), _, _, _, _)
6360
}
6461

6562
/**

0 commit comments

Comments
 (0)