Addapt linting to dependency update.

This commit is contained in:
John Livingston
2025-05-12 13:01:40 +02:00
parent d36fa2e241
commit c0d2c0caae
4 changed files with 16 additions and 6 deletions

View File

@ -39,9 +39,7 @@ export class PtContext {
* Keep them in cache after first request.
*/
public async getSettings (): Promise<LiveChatSettings> {
if (!this._settings) {
this._settings = await this.ptOptions.peertubeHelpers.getSettings() as LiveChatSettings
}
this._settings ??= await this.ptOptions.peertubeHelpers.getSettings() as LiveChatSettings
return this._settings
}
}