Skip to content

Commit 3c601fc

Browse files
asgerferik-krogh
andauthored
Apply suggestions from code review
Co-Authored-By: Erik Krogh Kristensen <erik-krogh@github.com>
1 parent 30a8769 commit 3c601fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

javascript/ql/src/Expressions/MissingAwait.qhelp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
<overview>
66
<p>
77
In JavaScript, <code>async</code> functions always return a promise object.
8-
To obtain the underlying value of the promise, the <code>await</code. operator or a call to <code>then</code. should be used.
9-
Attempting to use a Promise object instead of its underlying value can lead to expected behavior.
8+
To obtain the underlying value of the promise, the <code>await</code> operator or a call to <code>then</code> should be used.
9+
Attempting to use a Promise object instead of its underlying value can lead to unexpected behavior.
1010
</p>
1111

1212
</overview>
1313
<recommendation>
1414

1515
<p>
16-
Use the <code>await</code. operator to get the value contained in the promise.
17-
Alternatively, call <code>then</code. on the promise and use the value passed to the callback.
16+
Use the <code>await</code> operator to get the value contained in the promise.
17+
Alternatively, call <code>then</code> on the promise and use the value passed to the callback.
1818
</p>
1919

2020
</recommendation>

0 commit comments

Comments
 (0)