Skip to content

Commit 34bca06

Browse files
committed
Use _ for exists-variable that is only used once
1 parent 607e281 commit 34bca06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ql/test/library-tests/semmle/go/frameworks/SQL/QueryString.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ class SqlTest extends InlineExpectationsTest {
88

99
override predicate hasActualResult(Location location, string element, string tag, string value) {
1010
tag = "query" and
11-
exists(SQL::Query q, SQL::QueryString qs, int qsLine | qs = q.getAQueryString() |
11+
exists(SQL::Query q, SQL::QueryString qs | qs = q.getAQueryString() |
1212
q.hasLocationInfo(location.getFile().getAbsolutePath(), location.getStartLine(),
1313
location.getStartColumn(), location.getEndLine(), location.getEndColumn()) and
14-
qs.hasLocationInfo(_, qsLine, _, _, _) and
14+
qs.hasLocationInfo(_, _, _, _, _) and
1515
element = q.toString() and
1616
value = qs.toString()
1717
)

0 commit comments

Comments
 (0)