Skip to content

Commit 3cc5ba1

Browse files
committed
Remove un-needed code
1 parent 20d4e53 commit 3cc5ba1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ module GoMicro {
2727
* A file that is generated by the protobuf compiler.
2828
*/
2929
class ProtocGeneratedFile extends File {
30-
ProtocGeneratedFile() {
31-
exists(string prefix, File f |
32-
prefix = this.getBaseName().regexpCapture("^(.*)\\.pb(\\.micro)?\\.go$", 1) and
33-
this.getParentContainer() = f.getParentContainer()
34-
)
35-
}
30+
ProtocGeneratedFile() { this.getBaseName().regexpMatch(".*\\.pb(\\.micro)?\\.go$") }
3631
}
3732

3833
/**

0 commit comments

Comments
 (0)