Skip to content

Commit d84c9ce

Browse files
committed
refactor(data): remove unnecessary ?? []
1 parent 9f6c62f commit d84c9ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/data/src/subgraph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export default class SemaphoreSubgraph {
209209
*/
210210
async getGroupMembers(groupId: string): Promise<string[]> {
211211
const group = await this.getGroup(groupId, { members: true }) // parameters are checked inside getGroup
212-
return group.members ?? []
212+
return group.members!
213213
}
214214

215215
/**
@@ -219,7 +219,7 @@ export default class SemaphoreSubgraph {
219219
*/
220220
async getGroupValidatedProofs(groupId: string): Promise<any[]> {
221221
const group = await this.getGroup(groupId, { validatedProofs: true }) // parameters are checked inside getGroup
222-
return group.validatedProofs ?? []
222+
return group.validatedProofs!
223223
}
224224

225225
/**

0 commit comments

Comments
 (0)