mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Replace backticks with <code>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<overview>
|
||||
<p>
|
||||
In JavaScript, <code>async</code> functions always return a promise object.
|
||||
To obtain the underlying value of the promise, the `await` operator or a call to `then` should be used.
|
||||
To obtain the underlying value of the promise, the <code>await</code. operator or a call to <code>then</code. should be used.
|
||||
Attempting to use a Promise object instead of its underlying value can lead to expected behavior.
|
||||
</p>
|
||||
|
||||
@@ -13,8 +13,8 @@ Attempting to use a Promise object instead of its underlying value can lead to e
|
||||
<recommendation>
|
||||
|
||||
<p>
|
||||
Use the `await` operator to get the value contained in the promise.
|
||||
Alternatively, call `then` on the promise and use the value passed to the callback.
|
||||
Use the <code>await</code. operator to get the value contained in the promise.
|
||||
Alternatively, call <code>then</code. on the promise and use the value passed to the callback.
|
||||
</p>
|
||||
|
||||
</recommendation>
|
||||
|
||||
Reference in New Issue
Block a user