Skip to content

Commit dac7892

Browse files
committed
Use don't care expression
1 parent 4cdb612 commit dac7892

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/AspNetCore.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,8 @@ private predicate isDefaultMicrosoftAspNetCoreMvcController(Class controller) {
359359
(
360360
hasMicrosoftAspNetCoreMvcControllerIdentity(controller)
361361
or
362-
exists(Compilation application |
363-
controller.getName().toLowerCase().matches("%controller") and
364-
hasMicrosoftAspNetCoreMvcEndpointMapping(application, controller)
365-
)
362+
controller.getName().toLowerCase().matches("%controller") and
363+
hasMicrosoftAspNetCoreMvcEndpointMapping(_, controller)
366364
) and
367365
not controller.getABaseType*().getAnAttribute() instanceof
368366
MicrosoftAspNetCoreMvcNonControllerAttribute

0 commit comments

Comments
 (0)