]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove unused comments
authorChocobozzz <me@florianbigard.com>
Fri, 8 Oct 2021 09:22:22 +0000 (11:22 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 8 Oct 2021 09:22:22 +0000 (11:22 +0200)
server/helpers/regexp.ts
server/initializers/migrations/0135-video-channel-actor.ts
shared/extra-utils/miscs/sql-command.ts

index cfc2be4882523e7c5dbd20c56903801a059b0df6..257054cead9c076744a0ac18266c110d5c306024 100644 (file)
@@ -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) {
index 3f620dfa3b462c376573241df6f953dace1d4c76..6989e1cbb16ae5d939e4e11316034c2ee3017dc6 100644 (file)
@@ -56,7 +56,6 @@ async function up (utils: {
   }
 
   {
-    // tslint:disable:no-trailing-whitespace
     const query1 =
       `
       INSERT INTO "actor"
index 80c8cd2715552517b2ae5b883d97640086030a6c..bedb3349b4fd6b416389a45eae57eaed7415da96 100644 (file)
@@ -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}'`