Skip to content

Commit 5c3ca40

Browse files
committed
Update comments
1 parent 66c10d0 commit 5c3ca40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/FikaMatchService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class FikaMatchService {
9999
}
100100

101101
/**
102-
* Returns the player with the given id in the given match, undefined if either match or player does not exist
102+
* Returns the player with the given id in the given match, returns undefined if either match or player does not exist
103103
* @param matchId
104104
* @param playerId
105105
* @returns
@@ -117,12 +117,12 @@ export class FikaMatchService {
117117
}
118118

119119
/**
120-
* Returns the match id that has a player with the given player id, undefined if the player isn't in a match
120+
* Returns the match id that has a player with the given player id, returns undefined if the player isn't in a match
121121
*
122122
* @param playerId
123123
* @returns
124124
*/
125-
public getMatchIdByPlayer(playerId: string): string {
125+
public getMatchIdByPlayer(playerId: string): string | undefined {
126126
for (const [key, value] of this.matches.entries()) {
127127
if (value.players.has(playerId)) {
128128
return key;
@@ -133,14 +133,14 @@ export class FikaMatchService {
133133
}
134134

135135
/**
136-
* Returns the match id that has a player with the given session id, undefined if the player isn't in a match
136+
* Returns the match id that has a player with the given session id, returns undefined if the player isn't in a match
137137
*
138138
* Note:
139139
* - First tries to find pmc, then scav
140140
* @param sessionId
141141
* @returns
142142
*/
143-
public getMatchIdByProfile(sessionId: string): string {
143+
public getMatchIdByProfile(sessionId: string): string | undefined {
144144
const profile = this.saveServer.getProfile(sessionId);
145145

146146
// check if pmc is in match

0 commit comments

Comments
 (0)