Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -4,8 +4,11 @@ import type { ServerMatch } from '../match-history.js';
|
||||
|
||||
export function matchInstanceLabel(match: ServerMatch): string {
|
||||
const identity = serverIdentity(match.server);
|
||||
const parts = [identity.map !== match.map ? identity.map : '', identity.lobby === null ? '' : `Lobby ${identity.lobby}`,
|
||||
match.game === 't5' ? 'Black Ops I' : match.game === 't6' ? 'Black Ops II' : match.game];
|
||||
const parts = [
|
||||
identity.map !== match.map ? identity.map : '',
|
||||
identity.lobby === null ? '' : `Lobby ${identity.lobby}`,
|
||||
match.game === 't5' ? 'Black Ops I' : match.game === 't6' ? 'Black Ops II' : match.game
|
||||
];
|
||||
return parts.filter(Boolean).join(' · ') || match.server;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user