Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhouweling committed Nov 12, 2024
1 parent 86eb413 commit cff087b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/halo/halo.mts
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ export class HaloService {

private async getMapName(match: MatchStats) {
const { AssetId, VersionId } = match.MatchInfo.MapVariant;
const cacheKey = `${AssetId}:${VersionId}`;
const cacheKey = `${AssetId}:${VersionId}`;

if (!this.mapNameCache.has(cacheKey)) {
const mapData = await this.client.getSpecificAssetVersion(AssetKind.Map, AssetId, VersionId);
this.mapNameCache.set(cacheKey, mapData.PublicName);
if (!this.mapNameCache.has(cacheKey)) {
const mapData = await this.client.getSpecificAssetVersion(AssetKind.Map, AssetId, VersionId);
this.mapNameCache.set(cacheKey, mapData.PublicName);
}

return Preconditions.checkExists(this.mapNameCache.get(cacheKey));
Expand Down

0 comments on commit cff087b

Please sign in to comment.