Skip to content

Commit

Permalink
fix: rename misleading variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Dec 17, 2024
1 parent ac6995a commit 26b42cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions electron/lib/niconico/comments/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const convertV3ToFormatted = (
if (tmpParam.content.startsWith("/") && tmpParam.owner) {
tmpParam.mail.push("invisible");
}
const isUserExist = userList.indexOf(comment.userId);
if (isUserExist === -1) {
const userIndex = userList.indexOf(comment.userId);
if (userIndex === -1) {
tmpParam.user_id = userList.length;
userList.push(comment.userId);
} else {
tmpParam.user_id = isUserExist;
tmpParam.user_id = userIndex;
}
comments.push(tmpParam);
}
Expand Down

0 comments on commit 26b42cf

Please sign in to comment.