Skip to content

Commit 1bf6101

Browse files
committed
Remove redundant exclusion of base Grape::API module from GrapeApiClass
- should not impact extracted application code
1 parent 50bf9ae commit 1bf6101

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ruby/ql/lib/codeql/ruby/frameworks/Grape.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ module Grape {
4545
*/
4646
class GrapeApiClass extends DataFlow::ClassNode {
4747
GrapeApiClass() {
48-
this = grapeApiBaseClass().getADescendentModule() and
49-
not exists(DataFlow::ModuleNode m | m = grapeApiBaseClass().asModule() | this = m)
48+
this = grapeApiBaseClass().getADescendentModule()
5049
}
5150

5251
/**

0 commit comments

Comments
 (0)