We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6177975 commit 9f1005aCopy full SHA for 9f1005a
lib/rules/await-async-utils.js
@@ -87,12 +87,12 @@ function isAwaited(node) {
87
return VALID_PARENTS.includes(node.type);
88
}
89
90
+const hasAThenProperty = node =>
91
+ node.type === 'MemberExpression' && node.property.name === 'then';
92
+
93
function isPromiseResolved(node) {
94
const parent = node.parent;
95
- const hasAThenProperty = node =>
- node.type === 'MemberExpression' && node.property.name === 'then';
-
96
// wait(...).then(...)
97
if (parent.type === 'CallExpression') {
98
return hasAThenProperty(parent.parent);
0 commit comments