Skip to content

Commit 2ad7e3a

Browse files
committed
JS: Move an alert
1 parent 3a73513 commit 2ad7e3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/test/query-tests/Security/CWE-829/insecure-download.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function test() {
4949

5050
nugget("http://example.org/unsafe", {target: "foo.safe"}, () => { })
5151

52-
$.get("http://example.org/unsafe.unknown", function( data ) {
53-
writeFileAtomic('unsafe.exe', data, {}, function (err) {}); // $ Alert
52+
$.get("http://example.org/unsafe.unknown", function( data ) { // $ Alert
53+
writeFileAtomic('unsafe.exe', data, {}, function (err) {});
5454
});
5555

5656
$.get("http://example.org/unsafe.unknown", function( data ) {

0 commit comments

Comments
 (0)