Removing unnecessary semicolons
authorOkhin <okhin@okhin.fr>
Sat, 24 Mar 2018 19:47:42 +0000 (20:47 +0100)
committerRigel Kent <par@rigelk.eu>
Sat, 24 Mar 2018 20:17:29 +0000 (21:17 +0100)
server/tools/import-videos.ts

index 72223a01a288d0916da3dacc1378cc3dd6cf6f1d..baaedd329df29c361c5cc043763b7215563fd4a1 100644 (file)
@@ -54,8 +54,8 @@ async function run () {
   const options = [ '-j', '--flat-playlist', '--playlist-reverse' ]
   youtubeDL.getInfo(program['targetUrl'], options, processOptions, async (err, info) => {
     if (err) {
-      console.log(err.message);
-      process.exit(1);
+      console.log(err.message)
+      process.exit(1)
     }
 
     let infoArray: any[]
@@ -160,8 +160,8 @@ async function uploadVideoOnPeerTube (videoInfo: any, videoPath: string, languag
 
       await uploadVideo(program['url'], accessToken, videoAttributes)
     } else {
-      console.log(err.message);
-      process.exit(1);
+      console.log(err.message)
+      process.exit(1)
     }
   }