Skip to content

Commit 1535ce1

Browse files
yofftausbn
andauthored
Apply suggestions from code review
Co-authored-by: Taus <[email protected]>
1 parent ea74c7f commit 1535ce1

File tree

1 file changed

+4
-4
lines changed
  • python/ql/src/experimental/semmle/python/frameworks

1 file changed

+4
-4
lines changed

python/ql/src/experimental/semmle/python/frameworks/PEP249.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,29 @@ module Connection {
3535
* calls, or a special parameter that will be set when functions are called by external
3636
* libraries.
3737
*
38-
* Use `Conection::instance()` predicate to get references to instances of `db.Conection`.
38+
* Use `Connection::instance()` predicate to get references to instances of `db.Connection`.
3939
*
4040
* Extend this class if the module implementing PEP 249 offers more direct ways to obtain
4141
* a connection than going through `connect`.
4242
*/
4343
abstract class InstanceSource extends DataFlow::Node { }
4444

45-
/** A direct instantiation of `db.Conection`. */
45+
/** A direct instantiation of `db.Connection`. */
4646
private class ClassInstantiation extends InstanceSource, DataFlow::CfgNode {
4747
override CallNode node;
4848

4949
ClassInstantiation() { node.getFunction() = connect().asCfgNode() }
5050
}
5151

52-
/** Gets a reference to an instance of `db.Conection`. */
52+
/** Gets a reference to an instance of `db.Connection`. */
5353
private DataFlow::Node instance(DataFlow::TypeTracker t) {
5454
t.start() and
5555
result instanceof InstanceSource
5656
or
5757
exists(DataFlow::TypeTracker t2 | result = instance(t2).track(t2, t))
5858
}
5959

60-
/** Gets a reference to an instance of `db.Conection`. */
60+
/** Gets a reference to an instance of `db.Connection`. */
6161
DataFlow::Node instance() { result = instance(DataFlow::TypeTracker::end()) }
6262
}
6363

0 commit comments

Comments
 (0)