Skip to content

Commit b9cd157

Browse files
committed
JS: Autoformat
1 parent eaf6be5 commit b9cd157

3 files changed

Lines changed: 7 additions & 11 deletions

File tree

javascript/ql/src/semmle/javascript/Promises.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,11 @@ module Bluebird {
581581
* An async function created using a call to `bluebird.coroutine`.
582582
*/
583583
class BluebirdCoroutineDefinition extends DataFlow::CallNode {
584-
BluebirdCoroutineDefinition() {
585-
this = bluebird().getAMemberCall("coroutine")
586-
}
584+
BluebirdCoroutineDefinition() { this = bluebird().getAMemberCall("coroutine") }
587585
}
588586

589-
private class BluebirdCoroutineDefinitionAsPartialInvoke extends DataFlow::PartialInvokeNode::Range, BluebirdCoroutineDefinition {
587+
private class BluebirdCoroutineDefinitionAsPartialInvoke extends DataFlow::PartialInvokeNode::Range,
588+
BluebirdCoroutineDefinition {
590589
override DataFlow::SourceNode getBoundFunction(DataFlow::Node callback, int boundArgs) {
591590
boundArgs = 0 and
592591
callback = getArgument(0) and

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,13 @@ private module Micro {
9090
this = moduleMember("micro", name).getACall()
9191
}
9292

93-
override string getKind() {
94-
result = "body"
95-
}
93+
override string getKind() { result = "body" }
9694

9795
override HTTP::RouteHandler getRouteHandler() {
9896
result = getRouteHandlerFromReqRes(getArgument(0))
9997
}
10098

101-
override predicate isUserControlledObject() {
102-
name = "json"
103-
}
99+
override predicate isUserControlledObject() { name = "json" }
104100
}
105101

106102
class MicroSendArgument extends HTTP::ResponseSendArgument {

javascript/ql/src/semmle/javascript/security/dataflow/TaintedPathCustomizations.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ module TaintedPath {
212212
DataFlow::Node output;
213213

214214
PreservingPathCall() {
215-
this = NodeJSLib::Path::moduleMember(["dirname", "toNamespacedPath", "parse", "format"]).getACall() and
215+
this =
216+
NodeJSLib::Path::moduleMember(["dirname", "toNamespacedPath", "parse", "format"]).getACall() and
216217
input = getAnArgument() and
217218
output = this
218219
or

0 commit comments

Comments
 (0)