Apply suggestions from code review

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Asger F
2021-07-12 14:23:58 +02:00
committed by GitHub
parent 5df961c4ed
commit d8927e5612

View File

@@ -16,7 +16,7 @@ function outerMost() {
return outer();
}
sink(outerMost()); // NOT OK - but missed
sink(outerMost()); // NOT OK
function confuse(x) {
let captured;
@@ -27,5 +27,5 @@ function confuse(x) {
return captured;
}
sink(confuse('safe')); // OK - but incorrectly flagged
sink(confuse('safe')); // OK
sink(confuse(source())); // NOT OK