From 11c635aa02abc14cd678e644166a6ad4c674ff89 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 30 Aug 2022 14:18:29 +0200 Subject: [PATCH] tools: fix typo in `avoid-prototype-pollution` lint rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/44446 Reviewed-By: Moshe Atlow Reviewed-By: Tobias Nießen Reviewed-By: Mohammed Keyvanzadeh --- tools/eslint-rules/avoid-prototype-pollution.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/eslint-rules/avoid-prototype-pollution.js b/tools/eslint-rules/avoid-prototype-pollution.js index d26a410b1d9f67..f7e7fbe7da0287 100644 --- a/tools/eslint-rules/avoid-prototype-pollution.js +++ b/tools/eslint-rules/avoid-prototype-pollution.js @@ -168,7 +168,7 @@ module.exports = { [CallExpression('PromisePrototypeCatch')](node) { context.report({ node, - message: '%Promise.prototype.catch% look up the `then` property of ' + + message: '%Promise.prototype.catch% looks up the `then` property of ' + 'the `this` argument, use PromisePrototypeThen instead', }); }, @@ -176,7 +176,7 @@ module.exports = { [CallExpression('PromisePrototypeFinally')](node) { context.report({ node, - message: '%Promise.prototype.finally% look up the `then` property of ' + + message: '%Promise.prototype.finally% looks up the `then` property of ' + 'the `this` argument, use SafePromisePrototypeFinally or ' + 'try/finally instead', });