mirror of
https://github.com/github/codeql.git
synced 2026-04-20 14:34:04 +02:00
Use _ for exists-variable that is only used once
This commit is contained in:
@@ -8,10 +8,10 @@ class SqlTest extends InlineExpectationsTest {
|
||||
|
||||
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
||||
tag = "query" and
|
||||
exists(SQL::Query q, SQL::QueryString qs, int qsLine | qs = q.getAQueryString() |
|
||||
exists(SQL::Query q, SQL::QueryString qs | qs = q.getAQueryString() |
|
||||
q.hasLocationInfo(location.getFile().getAbsolutePath(), location.getStartLine(),
|
||||
location.getStartColumn(), location.getEndLine(), location.getEndColumn()) and
|
||||
qs.hasLocationInfo(_, qsLine, _, _, _) and
|
||||
qs.hasLocationInfo(_, _, _, _, _) and
|
||||
element = q.toString() and
|
||||
value = qs.toString()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user