From dcc199e2bb9bb2e1504f82f87746ad06881cf113 Mon Sep 17 00:00:00 2001 From: Shridhar Goel <35566748+ShridharGoel@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:44:56 +0530 Subject: [PATCH] Update use-periods-for-error-messages.js --- eslint-plugin-expensify/use-periods-for-error-messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint-plugin-expensify/use-periods-for-error-messages.js b/eslint-plugin-expensify/use-periods-for-error-messages.js index 3875aa9..cfda233 100644 --- a/eslint-plugin-expensify/use-periods-for-error-messages.js +++ b/eslint-plugin-expensify/use-periods-for-error-messages.js @@ -19,7 +19,7 @@ module.exports = { message, fix: function (fixer) { const lastChar = errorMessage[errorMessage.length - 1]; - const fixedMessage = lastChar === '.' ? errorMessage : `${errorMessage}.`; + const fixedMessage = `${errorMessage}.`; return fixer.replaceText(property.value, `'${fixedMessage}'`); } });