mirror of https://github.com/Chocobozzz/PeerTube
Move require outside the function
parent
0812c07722
commit
821b05aebb
|
@ -1,9 +1,9 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
function webtorrent (args) {
|
var WebTorrent = require('webtorrent')
|
||||||
var WebTorrent = require('webtorrent')
|
var ipc = require('node-ipc')
|
||||||
var ipc = require('node-ipc')
|
|
||||||
|
|
||||||
|
function webtorrent (args) {
|
||||||
if (args.length !== 3) {
|
if (args.length !== 3) {
|
||||||
throw new Error('Wrong arguments number: ' + args.length + '/3')
|
throw new Error('Wrong arguments number: ' + args.length + '/3')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue