Skip to content

Commit 2753a4f

Browse files
Apply suggestions from code review
Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
1 parent 856ad07 commit 2753a4f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

javascript/ql/src/semmle/javascript/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ module API {
302302
/** Gets a data-flow node that defines this entry point. */
303303
abstract DataFlow::Node getARhs();
304304

305-
/** Gets a API-node for this entry point. */
305+
/** Gets an API-graph node for this entry point. */
306306
API::Node getNode() { result = root().getASuccessor(this) }
307307
}
308308

javascript/ql/src/semmle/javascript/frameworks/NoSQL.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ private module MongoDB {
3333
not result.getAnImmediateUse().(DataFlow::ParameterNode).getName() = "db" // mongodb v2 provides a `Db` here
3434
}
3535

36-
/** Gets an api node that refers to a `connect` callback. */
36+
/** Gets an API-graph node that refers to a `connect` callback. */
3737
private API::Node getAMongoDbCallback() {
3838
result = getAMongoClient().getMember("connect").getLastParameter()
3939
}
4040

4141
/**
42-
* Gets an API node that may refer to a MongoDB database connection.
42+
* Gets an API-graph node that may refer to a MongoDB database connection.
4343
*/
4444
private API::Node getAMongoDb() {
4545
result = getAMongoClient().getMember("db").getReturn()
@@ -183,7 +183,7 @@ private module Mongoose {
183183
*/
184184
private class MongooseFunction extends API::Node {
185185
/**
186-
* Gets the API node for the result from this function (if the function returns a Query).
186+
* Gets the API-graph node for the result from this function (if the function returns a `Query`).
187187
*/
188188
abstract API::Node getQueryReturn();
189189

@@ -237,7 +237,7 @@ private module Mongoose {
237237
}
238238

239239
/**
240-
* Gets a API node referring to a Mongoose Model object.
240+
* Gets a API-graph node referring to a Mongoose Model object.
241241
*/
242242
private API::Node getModelObject() {
243243
result = getAMongooseInstance().getMember("model").getReturn()

0 commit comments

Comments
 (0)