From ab7b4f525b2edef5379ed8eb6abe223186380197 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Oct 2021 11:22:22 +0200 Subject: [PATCH] Remove unused comments --- server/helpers/regexp.ts | 1 - server/initializers/migrations/0135-video-channel-actor.ts | 1 - shared/extra-utils/miscs/sql-command.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/server/helpers/regexp.ts b/server/helpers/regexp.ts index cfc2be488..257054cea 100644 --- a/server/helpers/regexp.ts +++ b/server/helpers/regexp.ts @@ -4,7 +4,6 @@ function regexpCapture (str: string, regex: RegExp, maxIterations = 100) { let m: RegExpExecArray let i = 0 - // tslint:disable:no-conditional-assignment while ((m = regex.exec(str)) !== null && i < maxIterations) { // This is necessary to avoid infinite loops with zero-width matches if (m.index === regex.lastIndex) { diff --git a/server/initializers/migrations/0135-video-channel-actor.ts b/server/initializers/migrations/0135-video-channel-actor.ts index 3f620dfa3..6989e1cbb 100644 --- a/server/initializers/migrations/0135-video-channel-actor.ts +++ b/server/initializers/migrations/0135-video-channel-actor.ts @@ -56,7 +56,6 @@ async function up (utils: { } { - // tslint:disable:no-trailing-whitespace const query1 = ` INSERT INTO "actor" diff --git a/shared/extra-utils/miscs/sql-command.ts b/shared/extra-utils/miscs/sql-command.ts index 80c8cd271..bedb3349b 100644 --- a/shared/extra-utils/miscs/sql-command.ts +++ b/shared/extra-utils/miscs/sql-command.ts @@ -50,7 +50,6 @@ export class SQLCommand extends AbstractCommand { async countVideoViewsOf (uuid: string) { const seq = this.getSequelize() - // tslint:disable const query = 'SELECT SUM("videoView"."views") AS "total" FROM "videoView" ' + `INNER JOIN "video" ON "video"."id" = "videoView"."videoId" WHERE "video"."uuid" = '${uuid}'`