aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-07 13:12:32 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-07 13:12:32 +0100
commit821b05aebb062deabe517be30879cfbd28567a98 (patch)
tree0942a4666bde2073b5bf79240abe61e147c1d170
parent0812c0772285774bc115f1ba32cdba7042ab3033 (diff)
downloadPeerTube-821b05aebb062deabe517be30879cfbd28567a98.tar.gz
PeerTube-821b05aebb062deabe517be30879cfbd28567a98.tar.zst
PeerTube-821b05aebb062deabe517be30879cfbd28567a98.zip
Move require outside the function
-rw-r--r--lib/webtorrentProcess.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/webtorrentProcess.js b/lib/webtorrentProcess.js
index 7ba2dd3d9..7da52523a 100644
--- a/lib/webtorrentProcess.js
+++ b/lib/webtorrentProcess.js
@@ -1,9 +1,9 @@
1'use strict' 1'use strict'
2 2
3function webtorrent (args) { 3var WebTorrent = require('webtorrent')
4 var WebTorrent = require('webtorrent') 4var ipc = require('node-ipc')
5 var ipc = require('node-ipc')
6 5
6function webtorrent (args) {
7 if (args.length !== 3) { 7 if (args.length !== 3) {
8 throw new Error('Wrong arguments number: ' + args.length + '/3') 8 throw new Error('Wrong arguments number: ' + args.length + '/3')
9 } 9 }