From: Chocobozzz Date: Sun, 7 Feb 2016 12:12:32 +0000 (+0100) Subject: Move require outside the function X-Git-Tag: v0.0.1-alpha~1034 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=821b05aebb062deabe517be30879cfbd28567a98;p=oweals%2Fpeertube.git Move require outside the function --- 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 @@ 'use strict' -function webtorrent (args) { - var WebTorrent = require('webtorrent') - var ipc = require('node-ipc') +var WebTorrent = require('webtorrent') +var ipc = require('node-ipc') +function webtorrent (args) { if (args.length !== 3) { throw new Error('Wrong arguments number: ' + args.length + '/3') }