Skip to content

Commit

Permalink
Removed a check for trainee.id that shouldn't be required.
Browse files Browse the repository at this point in the history
  • Loading branch information
lancegliser committed Sep 18, 2024
1 parent 4c0fad8 commit 2557328
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/client/wasm/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,6 @@ export class WasmClient extends BaseClient implements ITraineeClient, ISessionCl

// Check if trainee already loaded
const trainee = await this.autoResolveTrainee(traineeId);
if (!trainee.id) {
throw new Error(`trainee.id is undefined`);
}
const cached = this.traineeCache.get(trainee.id);
if (cached) {
if (["allow", "always"].indexOf(String(cached.trainee.persistence)) != -1) {
Expand Down

0 comments on commit 2557328

Please sign in to comment.