Skip to content

Commit 7da0345

Browse files
committed
JS: Autoformat
1 parent 2c6bead commit 7da0345

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

javascript/ql/src/Security/CWE-020/IncompleteUrlSchemeCheck.ql

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ class DangerousScheme extends string {
1818
DangerousScheme() { this = "data:" or this = "javascript:" or this = "vbscript:" }
1919

2020
/** Gets the name of this scheme without the `:`. */
21-
string getWithoutColon() {
22-
this = result + ":"
23-
}
21+
string getWithoutColon() { this = result + ":" }
2422

2523
/** Gets the name of this scheme, with or without the `:`. */
26-
string getWithOrWithoutColon() {
27-
result = this or result = getWithoutColon()
28-
}
24+
string getWithOrWithoutColon() { result = this or result = getWithoutColon() }
2925
}
3026

3127
/** Returns a node that refers to the scheme of `url`. */

0 commit comments

Comments
 (0)