Refactor RootApi class to use getAnImmediateDescendent for clarity

This commit is contained in:
Chad Bentz
2025-09-21 20:44:46 -04:00
parent f4bbbc346f
commit 50bf9ae756

View File

@@ -26,7 +26,7 @@ module Grape {
*/
class RootApi extends GrapeApiClass {
RootApi() {
not exists(GrapeApiClass parent | this != parent and this = parent.getADescendent())
not this = any(GrapeApiClass parent).getAnImmediateDescendent()
}
}