Skip to content

Commit

Permalink
chore: remove todos
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed Dec 2, 2024
1 parent a14daad commit a4a8745
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/app-runtime/src/AppStringProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ export class AppStringProcessor {
}

const tokenResult = await this.runtime.anonymousServices.tokens.loadPeerToken({ reference: truncatedReference, password: password });
if (tokenResult.isError) {
// TODO: should it be possible to ask for the password again when it was wrong?
return UserfriendlyResult.fail(UserfriendlyApplicationError.fromError(tokenResult.error));
}
if (tokenResult.isError) return UserfriendlyResult.fail(UserfriendlyApplicationError.fromError(tokenResult.error));

const tokenDTO = tokenResult.value;
const tokenContent = this.parseTokenContent(tokenDTO.content);
Expand Down Expand Up @@ -144,7 +141,6 @@ export class AppStringProcessor {
);
}

// TODO: should it be possible to ask for the password again when it was wrong?
return UserfriendlyResult.fail(UserfriendlyApplicationError.fromError(result.error));
}

Expand Down

0 comments on commit a4a8745

Please sign in to comment.