Opravy dle SonarQube
ci/woodpecker/push/workflow Pipeline was successful

This commit is contained in:
mates committed 2025-08-07 13:12:55 +02:00
1 parent 0d90453c38
commit 52769fc981
11 files changed
+24 -67

No files matched your search

+1 -3
View File
@@ -381,9 +381,7 @@ export async function addChoice(login: string, trusted: boolean, locationKey: Lu
removeChoiceIfPresent(login, usedDate, locationKey);
}
// TODO vytáhnout inicializaci "prázdné struktury" do vlastní funkce
if (!(data.choices[locationKey])) {
data.choices[locationKey] = {}
}
data.choices[locationKey] ??= {};
if (!(login in data.choices[locationKey])) {
if (!data.choices[locationKey]) {
data.choices[locationKey] = {}