Fix incorrect calls to package()

This commit is contained in:
Owen Mansel-Chan
2021-02-22 14:34:11 +00:00
parent 083512acef
commit 370afe3383
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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", "") }
}