Skip to content

Commit 50bf9ae

Browse files
committed
Refactor RootApi class to use getAnImmediateDescendent for clarity
1 parent f4bbbc3 commit 50bf9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module Grape {
2626
*/
2727
class RootApi extends GrapeApiClass {
2828
RootApi() {
29-
not exists(GrapeApiClass parent | this != parent and this = parent.getADescendent())
29+
not this = any(GrapeApiClass parent).getAnImmediateDescendent()
3030
}
3131
}
3232

0 commit comments

Comments
 (0)