Skip to content

Commit 3aea270

Browse files
authored
Python: Autoformat
1 parent aeac036 commit 3aea270

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

python/ql/src/Security/CWE-327/InsecureProtocol.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ string callName(Nameable call) {
5151
}
5252

5353
string configName(ProtocolConfiguration protocolConfiguration) {
54-
result =
55-
"call to " + callName(protocolConfiguration.(DataFlow::CallCfgNode).getFunction())
54+
result = "call to " + callName(protocolConfiguration.(DataFlow::CallCfgNode).getFunction())
5655
or
5756
not protocolConfiguration instanceof DataFlow::CallCfgNode and
5857
not protocolConfiguration instanceof ContextCreation and

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,5 @@ DataFlow::Node execute() { execute(DataFlow::TypeTracker::end()).flowsTo(result)
122122
private class ExecuteCall extends SqlExecution::Range, DataFlow::CallCfgNode {
123123
ExecuteCall() { this.getFunction() = execute() }
124124

125-
override DataFlow::Node getSql() {
126-
result in [this.getArg(0), this.getArgByName("sql")]
127-
}
125+
override DataFlow::Node getSql() { result in [this.getArg(0), this.getArgByName("sql")] }
128126
}

0 commit comments

Comments
 (0)