From 8cf376cc04638dcf4fbd736bda8746090143d49f Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 12:51:10 +0000 Subject: [PATCH] refactor: remove useless template literal **Fixes are generated by AI. Review them carefully before applying to your codebase.** This PR refactors code by eliminating redundant template literals and replacing them with standard string literals where no interpolation is needed. These changes improve code readability and eliminate unnecessary syntactic overhead. - Useless template literal found: Instances were using template literals without any embedded expressions, leading to unnecessary syntax. We replaced these with plain string literals to simplify the code and reduce potential performance overhead. --- components/RepoBox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/RepoBox.vue b/components/RepoBox.vue index 813f98d7..250ce6f8 100644 --- a/components/RepoBox.vue +++ b/components/RepoBox.vue @@ -112,12 +112,12 @@ export default { getIssueCommentsCounterTooltip: function (issue) { const numComments = issue.comments_count if (numComments === 0) { - return `There are no comments on this issue` + return 'There are no comments on this issue' } if (numComments > 1) { return `There are ${numComments} comments on this issue` } - return `There is one comment on this issue` + return 'There is one comment on this issue' } } }