From 38e6785d19b0856f88b2e4e7374487f5734023dc Mon Sep 17 00:00:00 2001 From: Francesco Renzi Date: Tue, 23 May 2023 13:45:22 +0100 Subject: [PATCH] Apply linting --- packages/core/src/core.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index 6f23de6a..f00cd1a5 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -93,15 +93,15 @@ export function exportVariable(name: string, val: any): void { } /** - * Registers a secret which will get masked from logs - * @param secret value of the secret - */ + * Registers a secret which will get masked from logs +* @param secret value of the secret +*/ export function setSecret(secret: string): void { - secret.split(/[\r\n]/).forEach(part => { + for (const part of secret.split(/[\r\n]/)) { if (part) { - issueCommand('add-mask', {}, part) + issueCommand('add-mask', {}, part); } - }) + } } /**