Skip to content

Commit a4a8745

Browse files
committed
chore: remove todos
1 parent a14daad commit a4a8745

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/app-runtime/src/AppStringProcessor.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ export class AppStringProcessor {
8888
}
8989

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

9693
const tokenDTO = tokenResult.value;
9794
const tokenContent = this.parseTokenContent(tokenDTO.content);
@@ -144,7 +141,6 @@ export class AppStringProcessor {
144141
);
145142
}
146143

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

0 commit comments

Comments
 (0)