]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix useless condition
authorChocobozzz <me@florianbigard.com>
Mon, 11 Oct 2021 12:16:31 +0000 (14:16 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 11 Oct 2021 12:16:31 +0000 (14:16 +0200)
server/models/video/sql/shared/video-model-builder.ts

index e7e2aa1ca688b9443781d661aa722612a1f962c3..33a0181e9ec3f4331dc9e70ab37f9ee470cec9f7 100644 (file)
@@ -120,7 +120,7 @@ export class VideoModelBuilder {
   private grabSeparateStreamingPlaylistFiles (rowsStreamingPlaylist?: SQLRow[]) {
     if (!rowsStreamingPlaylist) return
 
-    for (const row of rowsStreamingPlaylist || []) {
+    for (const row of rowsStreamingPlaylist) {
       const id = row['VideoStreamingPlaylists.id']
       if (!id) continue