Skip to content

Commit 1e62bb1

Browse files
aduh95RafaelGSS
authored andcommitted
tools: fix typo in avoid-prototype-pollution lint rule
PR-URL: #44446 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 3e6cde5 commit 1e62bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/eslint-rules/avoid-prototype-pollution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ module.exports = {
168168
[CallExpression('PromisePrototypeCatch')](node) {
169169
context.report({
170170
node,
171-
message: '%Promise.prototype.catch% look up the `then` property of ' +
171+
message: '%Promise.prototype.catch% looks up the `then` property of ' +
172172
'the `this` argument, use PromisePrototypeThen instead',
173173
});
174174
},
175175

176176
[CallExpression('PromisePrototypeFinally')](node) {
177177
context.report({
178178
node,
179-
message: '%Promise.prototype.finally% look up the `then` property of ' +
179+
message: '%Promise.prototype.finally% looks up the `then` property of ' +
180180
'the `this` argument, use SafePromisePrototypeFinally or ' +
181181
'try/finally instead',
182182
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy