E0266: redundant 'await'
The await
operator unwraps a Promise
, giving you the value when the
Promise
is resolved. Because a Promise
cannot resolve to another Promise
,
await
will never give you a Promise
object. Therefore, using await
on the
result of await
is redundant:
To fix this error, delete the redundant await
operator:
Alternatively, wrap the inner await
expression in parentheses:
Introduced in quick-lint-js version 2.8.0.