Skip to content

Commit 682bf6d

Browse files
aibaarserik-krogh
andauthored
Apply suggestions from code review
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 06736e3 commit 682bf6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/src/AlertSuppression.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
*/
77

88
private import codeql.suppression.AlertSuppression as AS
9-
private import semmle.javascript.Locations as L
9+
private import javascript as JS
1010

1111
class SingleLineComment extends L::Locatable {
1212
private string text;
1313

1414
SingleLineComment() {
1515
(
16-
text = this.(L::Comment).getText() or
17-
text = this.(L::HTML::CommentNode).getText()
16+
text = this.(JS::Comment).getText() or
17+
text = this.(JS::HTML::CommentNode).getText()
1818
) and
1919
// suppression comments must be single-line
2020
not text.matches("%\n%")

0 commit comments

Comments
 (0)