Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Nov 6, 2024
1 parent ccacb8a commit 886aa45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/participant/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,9 @@ export default class ParticipantController {
stream,
});

// databaseName will be undefined if some error occurs.
// databaseName will be undefined if it cannot be found from
// the metadata or history, in which case the user will be prompted
// to select it or if some error occurs.
if (!databaseName) {
return { databaseName, collectionName };
}
Expand Down Expand Up @@ -1233,7 +1235,7 @@ export default class ParticipantController {
});

// If either the database or collection name could not be automatically picked
// then the user has been prompted to select one manually.
// then the user has been prompted to select one manually or been presented with an error.
if (databaseName === undefined || collectionName === undefined) {
return namespaceRequestChatResult({
databaseName,
Expand Down

0 comments on commit 886aa45

Please sign in to comment.