Skip to content

Commit cbd5776

Browse files
committed
JS: Autoformat
1 parent c8e7df7 commit cbd5776

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

javascript/ql/lib/semmle/javascript/PackageExports.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ private DataFlow::Node getAValueExportedByPackage() {
5252
result = getAValueExportedByPackage().getALocalSource()
5353
or
5454
// Nested property reads.
55-
result = getAValueExportedByPackage().(DataFlow::SourceNode).getAPropertyReference(publicPropertyName())
55+
result =
56+
getAValueExportedByPackage().(DataFlow::SourceNode).getAPropertyReference(publicPropertyName())
5657
or
5758
// module.exports.foo = require("./other-module.js");
5859
exists(Module mod |
@@ -186,9 +187,7 @@ private DataFlow::Node getAnExportFromModule(Module mod) {
186187
* This only allows properties whose first character is a letter or number.
187188
*/
188189
bindingset[result]
189-
private string publicPropertyName() {
190-
result.regexpMatch("[a-zA-Z0-9].*")
191-
}
190+
private string publicPropertyName() { result.regexpMatch("[a-zA-Z0-9].*") }
192191

193192
/**
194193
* Holds if the given function is part of a private (or protected) method declaration.

0 commit comments

Comments
 (0)