From bd5a8b23db7859dc4bb8c9dbe4f27e545695b27a Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 22 Jul 2024 19:03:43 +0200 Subject: [PATCH] Fix linting --- src/controller/license.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/controller/license.ts b/src/controller/license.ts index 781604f..b928e4d 100644 --- a/src/controller/license.ts +++ b/src/controller/license.ts @@ -29,26 +29,26 @@ export const generateRandom = () => { } export const replaceLicenseDefaults = (defaultKey: string) => { - return defaultKey.split('').map(char => { + return defaultKey.split("").map(char => { switch (char) { - case 'N': + case "N": return String(Math.floor(Math.random() * 10)); - case 'C': + case "C": return generateCharacter(); - case 'L': + case "L": return String.fromCharCode(Math.floor(Math.random() * 26) + 97); - case 'U': + case "U": return String.fromCharCode(Math.floor(Math.random() * 26) + 65); - case 'S': + case "S": return generateSpecialCharacter(); - case 'A': + case "A": return generateAlphaNumeric(); - case 'R': + case "R": return generateRandom(); default: return char; } - }).join(''); + }).join(""); } export const checkLicenseConfiguration = async (access: IProject, config: ILicense) => {