From 821b05aebb062deabe517be30879cfbd28567a98 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 7 Feb 2016 13:12:32 +0100 Subject: [PATCH] Move require outside the function --- lib/webtorrentProcess.js | 6 +++--- 1 file 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 @@ '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') } -- 2.25.1