diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 13:12:32 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 13:12:32 +0100 |
commit | 821b05aebb062deabe517be30879cfbd28567a98 (patch) | |
tree | 0942a4666bde2073b5bf79240abe61e147c1d170 /lib/webtorrentProcess.js | |
parent | 0812c0772285774bc115f1ba32cdba7042ab3033 (diff) | |
download | PeerTube-821b05aebb062deabe517be30879cfbd28567a98.tar.gz PeerTube-821b05aebb062deabe517be30879cfbd28567a98.tar.zst PeerTube-821b05aebb062deabe517be30879cfbd28567a98.zip |
Move require outside the function
Diffstat (limited to 'lib/webtorrentProcess.js')
-rw-r--r-- | lib/webtorrentProcess.js | 6 |
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 | ||
3 | function webtorrent (args) { | 3 | var WebTorrent = require('webtorrent') |
4 | var WebTorrent = require('webtorrent') | 4 | var ipc = require('node-ipc') |
5 | var ipc = require('node-ipc') | ||
6 | 5 | ||
6 | function 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 | } |