Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 9a560e9

Browse files
committed
Remove redundant field
1 parent ce67720 commit 9a560e9

File tree

1 file changed

+2
-4
lines changed
  • ql/src/semmle/go/frameworks/stdlib

1 file changed

+2
-4
lines changed

ql/src/semmle/go/frameworks/stdlib/Html.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ import go
77
/** Provides models of commonly used functions in the `html` package. */
88
module Html {
99
private class Escape extends EscapeFunction::Range {
10-
string kind;
10+
Escape() { hasQualifiedName("html", "EscapeString") }
1111

12-
Escape() { hasQualifiedName("html", "EscapeString") and kind = "html" }
13-
14-
override string kind() { result = kind }
12+
override string kind() { result = "html" }
1513
}
1614

1715
private class FunctionModels extends TaintTracking::FunctionModel {

0 commit comments

Comments
 (0)