chore(prettier): prettify

This commit is contained in:
plebeius.eth
2023-09-23 10:30:48 +02:00
parent 1f10a0a262
commit 4cd1b1ce99
39 changed files with 1784 additions and 1784 deletions
+12 -12
View File
@@ -1,19 +1,19 @@
function countLinks(comment) {
let linkCount = 0;
let linkCount = 0;
if (comment.replyCount > 0) {
for (let reply of comment.replies.pages.topAll.comments) {
if (reply.link) {
linkCount++;
}
if (comment.replyCount > 0) {
for (let reply of comment.replies.pages.topAll.comments) {
if (reply.link) {
linkCount++;
}
if (reply.replyCount > 0) {
linkCount += countLinks(reply);
}
}
}
if (reply.replyCount > 0) {
linkCount += countLinks(reply);
}
}
}
return linkCount;
return linkCount;
}
export default countLinks;