Skip to content

Commit

Permalink
let -> const (#7041)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Dec 11, 2024
1 parent 832dc8d commit 3018eaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/openchat-client/src/utils/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ export function mergeEventsAndLocalUpdates(
if (unconfirmed.length > 0) {
unconfirmed.sort(sortByTimestampThenEventIndex);

let unconfirmedAdded = new Set<bigint>();
const unconfirmedAdded = new Set<bigint>();
for (const message of unconfirmed) {
// Only include unconfirmed events that are either contiguous with the loaded confirmed events, or are the
// first events in a new chat
Expand Down
4 changes: 2 additions & 2 deletions frontend/openchat-shared/src/domain/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function validateCommand(
errors: ValidationErrors,
): boolean {
let valid = true;
let nameErrors = validBotComponentName(command.name);
const nameErrors = validBotComponentName(command.name);
if (nameErrors.length > 0) {
errors.addErrors(`${errorPath}_name`, nameErrors);
valid = false;
Expand Down Expand Up @@ -374,7 +374,7 @@ function validateParameter(
errors: ValidationErrors,
): boolean {
let valid = true;
let nameErrors = validBotComponentName(param.name);
const nameErrors = validBotComponentName(param.name);
if (nameErrors.length > 0) {
errors.addErrors(`${errorPath}_name`, nameErrors);
valid = false;
Expand Down

0 comments on commit 3018eaa

Please sign in to comment.