Skip to content

Commit 808f0b3

Browse files
committed
Update logic.js
1 parent 291ce11 commit 808f0b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/module/logic.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ export class Polyglot {
349349
* @return {string} The message's text with its characters scrambled by the PRNG.
350350
*/
351351
scrambleString(string, salt, lang) {
352-
let language = this.languageProvider.languages[lang];
353-
const rng = language?.rng ?? "default";
352+
const { rng = "default" } = this.languageProvider.languages[lang];
354353
if (rng === "none") return string;
355354
if (rng === "default") salt = lang;
356355
// const font = this._getFontStyle(lang).replace(/\d+%\s/g, "");

0 commit comments

Comments
 (0)