🚨 Fixed deepsource issues

This commit is contained in:
Mawoka
2023-06-30 18:55:13 +02:00
parent 3a2ab6c64b
commit 3e6e367ed0
10 changed files with 9 additions and 10 deletions
+1 -2
View File
@@ -37,8 +37,7 @@ export const getWinnersSorted = (
if (q_res === null) {
continue;
}
for (let j = 0; j < q_res.length; j++) {
const res = q_res[j];
for (const res of q_res) {
if (res['right']) {
if (winners[res['username']] === undefined) {
winners[res['username']] = 0;
@@ -29,6 +29,7 @@ export class I18NextTranslationService implements TranslationService {
// 2. Create a new set function that changes the i18n locale.
// 3. Create a new update function that changes the i18n locale.
// 4. Return modified writable.
// skipcq: JS-0105
private createLocale(i18n: I18nService) {
const { subscribe, set, update } = writable<string>(i18n.i18n.language);