Skip to content

Commit e951720

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

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,9 @@ module GoMicro {
8686
*/
8787
class ClientServiceType extends NamedType {
8888
ClientServiceType() {
89-
exists(ServiceInterfaceType i, TypeEntity te |
90-
this.implements(i) and
91-
this.getName().regexpMatch("(?i).*Service") and
92-
te.getType() = this and
93-
te.getDeclaration().getLocation().getFile() instanceof ProtocGeneratedFile
94-
)
89+
this.implements(any(ServiceInterfaceType i)) and
90+
this.getName().regexpMatch("(?i).*Service") and
91+
this.hasLocationInfo(any(ProtocGeneratedFile f).getAbsolutePath(), _, _, _, _)
9592
}
9693
}
9794

0 commit comments

Comments
 (0)