mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Lint code
This commit is contained in:
@@ -79,7 +79,7 @@ export class AdminModel {
|
||||
console.error(error);
|
||||
this.error = error.message;
|
||||
return undefined;
|
||||
}
|
||||
};
|
||||
private checkError = <T>(promise: Promise<T>) => promise.catch(this.handleError) as Promise<T | undefined>;
|
||||
private running = true;
|
||||
private initializedLive = false;
|
||||
|
||||
@@ -43,9 +43,9 @@ function getTracks(season: Season, holiday: Holiday, map: MapType) {
|
||||
'trees-winter',
|
||||
'reindeer-winter',
|
||||
] : [
|
||||
'trees',
|
||||
'reindeer',
|
||||
]),
|
||||
'trees',
|
||||
'reindeer',
|
||||
]),
|
||||
'season',
|
||||
'ambient',
|
||||
'building',
|
||||
|
||||
@@ -467,7 +467,7 @@ export class Model {
|
||||
|
||||
this.pending = true;
|
||||
|
||||
const alert = !!this.accountAlert ? 'y' : '';
|
||||
const alert = this.accountAlert ? 'y' : '';
|
||||
|
||||
return this.post<JoinResponse>('/api/game/join', { version, ponyId, serverId, alert, url: location.href })
|
||||
.finally(() => this.pending = false);
|
||||
|
||||
@@ -57,4 +57,4 @@ export class RollbarErrorHandler implements ErrorHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user