Update Bot (j'ai plus le repo sur GitHub)
Qui c'est la conne qui a delete le repo sur GitHub? C'EST MOIIIII
This commit is contained in:
6
node_modules/eslint/lib/rules/preserve-caught-error.js
generated
vendored
6
node_modules/eslint/lib/rules/preserve-caught-error.js
generated
vendored
@@ -82,11 +82,7 @@ function getErrorCause(throwStatement) {
|
||||
}
|
||||
|
||||
const causeProperties = errorOptions.properties.filter(
|
||||
prop =>
|
||||
prop.type === "Property" &&
|
||||
prop.key.type === "Identifier" &&
|
||||
prop.key.name === "cause" &&
|
||||
!prop.computed, // It is hard to accurately identify the value of computed props
|
||||
prop => astUtils.getStaticPropertyName(prop) === "cause",
|
||||
);
|
||||
|
||||
const causeProperty = causeProperties.at(-1);
|
||||
|
||||
Reference in New Issue
Block a user