Fix/Improve linting

This commit is contained in:
2026-08-06 08:50:21 +02:00
parent f641ad5f43
commit 06a16c5b64
288 changed files with 3372 additions and 1536 deletions
+2 -1
View File
@@ -193,7 +193,8 @@ export class App implements OnInit, OnDestroy {
if (isSelected(this.game, message.entityId)) {
this.game.whisperTo = entity;
chatBox.setChatType('whisper');
} else {
}
else {
this.game.select(entity as Pony);
}
}
+5 -2
View File
@@ -490,8 +490,11 @@ export class Character implements OnInit, OnDestroy {
await this.model.savePony(pony, true);
imported++;
}
} catch (e) {
DEVELOPMENT && console.error(e);
}
catch (e) {
if (DEVELOPMENT) {
console.error(e);
}
}
}
+3 -1
View File
@@ -28,7 +28,9 @@ export class Help {
ngAfterViewInit() {
this.route.fragment.subscribe(f => {
const element = document.querySelector('#' + f);
if (element) setTimeout(() => element.scrollIntoView(), 10);
if (element) {
setTimeout(() => element.scrollIntoView(), 10);
}
});
}
}