Skip to content

Commit a756ffa

Browse files
committed
use the new instanceof syntax for NodeJSClientRequest
1 parent 85e1c87 commit a756ffa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

javascript/ql/lib/semmle/javascript/frameworks/NodeJSLib.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,9 +825,7 @@ module NodeJSLib {
825825
* A data flow node that is an HTTP or HTTPS client request made by a Node.js application,
826826
* for example `http.request(url)`.
827827
*/
828-
class NodeJSClientRequest extends ClientRequest {
829-
NodeJSClientRequest() { this instanceof NodeJSClientRequest::Range }
830-
}
828+
class NodeJSClientRequest extends ClientRequest instanceof NodeJSClientRequest::Range { }
831829

832830
module NodeJSClientRequest {
833831
/**

0 commit comments

Comments
 (0)