Skip to content

Commit 8bb91bf

Browse files
author
Max Schaefer
committed
JavaScript: Autoformat.
1 parent 41a3ad3 commit 8bb91bf

File tree

1 file changed

+5
-11
lines changed
  • javascript/ql/src/semmle/javascript

1 file changed

+5
-11
lines changed

javascript/ql/src/semmle/javascript/AMD.qll

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,12 @@ private predicate amdModuleTopLevel(AmdModuleDefinition def, TopLevel tl) {
205205
* An AMD dependency, viewed as an import.
206206
*/
207207
private class AmdDependencyImport extends Import {
208-
AmdDependencyImport() {
209-
this = any(AmdModuleDefinition def).getADependency()
210-
}
208+
AmdDependencyImport() { this = any(AmdModuleDefinition def).getADependency() }
211209

212-
override Module getEnclosingModule() {
213-
this = result.(AmdModule).getDefine().getADependency()
214-
}
210+
override Module getEnclosingModule() { this = result.(AmdModule).getDefine().getADependency() }
211+
212+
override PathExpr getImportedPath() { result = this }
215213

216-
override PathExpr getImportedPath() {
217-
result = this
218-
}
219-
220214
/**
221215
* Gets a file that looks like it might be the target of this import.
222216
*
@@ -248,7 +242,7 @@ private class AmdDependencyImport extends Import {
248242
private predicate targetCandidate(
249243
File f, string abspath, PathString imported, string dirname, string basename
250244
) {
251-
imported = getImportedPath().getValue() and
245+
imported = getImportedPath().getValue() and
252246
f.getStem() = imported.getStem() and
253247
f.getAbsolutePath() = abspath and
254248
dirname = imported.getDirName() and

0 commit comments

Comments
 (0)