sebastienrousseau / crypto-service

Found some unnecessary nested blocks JS-0072
Anti-pattern
Minor
7 months agoa year old
 5let constants;
 6
 7async function language(data: string) {
 8  { 9    if (data === "en") {10      console.log("en", data);11      constants = en.translations;12    } else if (data === "fr") {13      console.log("fr", data);14      constants = fr.translations;15    }16  }17}
18
19export { language, constants, locale };