From 9569cdd998d7e8a12fe028854aee79debe55eaa1 Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Tue, 17 Oct 2023 09:36:08 +0000 Subject: [PATCH] style: apply automated linter fixes --- src/language/validation/style.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/language/validation/style.ts b/src/language/validation/style.ts index 6c2dfb12c..01a4b718c 100644 --- a/src/language/validation/style.ts +++ b/src/language/validation/style.ts @@ -180,10 +180,14 @@ export const elvisOperatorShouldBeNeeded = (services: SafeDsServices) => { const leftValue = toConstantExpressionOrUndefined(node.leftOperand); const rightValue = toConstantExpressionOrUndefined(node.rightOperand); if (leftValue === ConstantNull && rightValue === ConstantNull) { - accept('info', 'Both operands are always null, so the elvis operator is unnecessary (replace it with null).', { - node, - code: CODE_STYLE_UNNECESSARY_ELVIS_OPERATOR, - }); + accept( + 'info', + 'Both operands are always null, so the elvis operator is unnecessary (replace it with null).', + { + node, + code: CODE_STYLE_UNNECESSARY_ELVIS_OPERATOR, + }, + ); } else if (leftValue === ConstantNull) { accept( 'info',