Skip to content

Commit 227e099

Browse files
atorralbaMathiasVP
andcommitted
Apply code review suggestions
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent aa1d49c commit 227e099

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ql/ql/src/queries/style/OmittableExists.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import ql
1313
from VarDecl existsArgument, VarAccess use
1414
where
1515
existsArgument = any(Exists e).getAnArgument() and
16-
strictcount(existsArgument.getAnAccess()) = 1 and
17-
use = existsArgument.getAnAccess() and
16+
use = unique( | | existsArgument.getAnAccess()) and
1817
exists(Call c, int argPos | c.getArgument(argPos) = use |
1918
not existsArgument.getType().getASuperType+() = c.getTarget().getParameterType(argPos)
2019
)

0 commit comments

Comments
 (0)