mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Apply suggestions from code review
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ where
|
||||
existsArgument = any(Exists e).getAnArgument() and
|
||||
use = unique( | | existsArgument.getAnAccess()) and
|
||||
exists(Call c, int argPos | c.getArgument(argPos) = use |
|
||||
not existsArgument.getType().getASuperType+() = c.getTarget().getParameterType(argPos)
|
||||
existsArgument.getType() = c.getTarget().getParameterType(argPos).getASuperType*()
|
||||
)
|
||||
select existsArgument, "This exists argument can be omitted by using a don't-care expression $@.",
|
||||
select existsArgument, "This exists variable can be omitted by using a don't-care expression $@.",
|
||||
use, "in this argument"
|
||||
|
||||
@@ -1 +1 @@
|
||||
| Test.qll:10:10:10:14 | i | This exists argument can be omitted by using a don't-care expression $@. | Test.qll:10:29:10:29 | i | in this argument |
|
||||
| Test.qll:10:10:10:14 | i | This exists variable can be omitted by using a don't-care expression $@. | Test.qll:10:29:10:29 | i | in this argument |
|
||||
|
||||
Reference in New Issue
Block a user