Allow possibly not finding the game object in the DB
This commit is contained in:
parent
c5eb73ef4b
commit
be3a1c97c9
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export class GameDB {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Get's the Game object associated with the provided ID */
|
/** Get's the Game object associated with the provided ID */
|
||||||
public get(id: string): Game {
|
public get(id: string): Game|undefined {
|
||||||
return this.games[id];
|
return this.games[id];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue