]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fixed lint error
authorPoslovitch <poslovitch@bentobox.world>
Sat, 24 Apr 2021 14:01:36 +0000 (14:01 +0000)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 26 Apr 2021 08:54:02 +0000 (10:54 +0200)
client/src/app/+videos/+video-watch/video-watch.component.ts

index 025c62430c5134a2647f1da5da23863c4f0b92b0..5530dc8ada84b2e69180904fe6a5200e5481e938 100644 (file)
@@ -848,8 +848,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
     }
 
     // Only set this if we're in a playlist
-    if (this.playlist) options.common.previousVideo = () => {
-      this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo())
+    if (this.playlist) {
+      options.common.previousVideo = () => {
+        this.zone.run(() => this.videoWatchPlaylist.navigateToPreviousPlaylistVideo())
+      }
     }
 
     let mode: PlayerMode