mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
Fix incorrect calls to package()
This commit is contained in:
@@ -206,7 +206,7 @@ module SQL {
|
||||
private class SqlxSink extends SQL::QueryString::Range {
|
||||
SqlxSink() {
|
||||
exists(Method meth, string name, int n |
|
||||
meth.hasQualifiedName(package("github.com/jmoiron", "sqlx"), ["DB", "Tx"], name) and
|
||||
meth.hasQualifiedName(package("github.com/jmoiron/sqlx", ""), ["DB", "Tx"], name) and
|
||||
this = meth.getACall().getArgument(n)
|
||||
|
|
||||
name = ["Select", "Get"] and n = 1
|
||||
|
||||
@@ -319,5 +319,5 @@ module NhooyrWebSocket {
|
||||
module GobwasWs {
|
||||
/** Gets the package name `github.com/gobwas/ws`. */
|
||||
bindingset[result]
|
||||
string packagePath() { result = package("github.com/gobwas", "ws") }
|
||||
string packagePath() { result = package("github.com/gobwas/ws", "") }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user