Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2752505

Browse files
authored
Merge pull request #495 from owen-mc/fix-evanphxjsonpatch-test
Model Apply methods correctly
2 parents 769fdde + 0a48fef commit 2752505

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ql/src/semmle/go/frameworks/EvanphxJsonPatch.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ private module EvanphxJsonPatch {
4545
}
4646
}
4747

48-
private class Apply extends TaintTracking::FunctionModel {
48+
private class Apply extends TaintTracking::FunctionModel, Method {
4949
Apply() {
5050
exists(string fn |
5151
fn in ["Apply", "ApplyWithOptions", "ApplyIndent", "ApplyIndentWithOptions"]
5252
|
53-
this.hasQualifiedName(packagePath(), fn)
53+
this.hasQualifiedName(packagePath(), "Patch", fn)
5454
)
5555
}
5656

0 commit comments

Comments
 (0)