mirror of
				https://github.com/Chocobozzz/PeerTube.git
				synced 2025-02-25 18:55:32 -06:00 
			
		
		
		
	Move require outside the function
This commit is contained in:
		@@ -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')
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user