Skip to content

Commit 31687af

Browse files
Fix performance
1 parent 5a1c0f6 commit 31687af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ruby/ql/lib/codeql/ruby/frameworks/http_clients/Typhoeus.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ private module TyphoeusDisablesCertificateValidationFlow =
7070
DataFlow::Global<TyphoeusDisablesCertificateValidationConfig>;
7171

7272
/** Gets the body from the given `requestNode` representing a Typhoeus request */
73+
bindingset[requestNode]
74+
pragma[inline_late]
7375
private DataFlow::Node getBodyFromRequest(API::Node requestNode) {
7476
result =
7577
[
@@ -79,6 +81,8 @@ private DataFlow::Node getBodyFromRequest(API::Node requestNode) {
7981
}
8082

8183
/** Gets the response from the given `requestNode` representing a Typhoeus request */
84+
bindingset[requestNode]
85+
pragma[inline_late]
8286
private API::Node getResponseFromRequest(API::Node requestNode) {
8387
result =
8488
[
@@ -92,6 +96,8 @@ private API::Node getResponseFromRequest(API::Node requestNode) {
9296
}
9397

9498
/** Gets the body from the given `responseNode` representing a Typhoeus response */
99+
bindingset[responseNode]
100+
pragma[inline_late]
95101
private DataFlow::Node getBodyFromResponse(API::Node responseNode) {
96102
result = responseNode.getAMethodCall(["body", "response_body"])
97103
}

0 commit comments

Comments
 (0)