Move require outside the function

pull/10/head
Chocobozzz 2016-02-07 13:12:32 +01:00
parent 0812c07722
commit 821b05aebb
1 changed files with 3 additions and 3 deletions

View File

@ -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')
}