Remove useless anonymous functions of files

pull/10/head
Chocobozzz 2016-02-07 11:23:23 +01:00
parent d7c01e7793
commit 9f10b2928d
37 changed files with 3115 additions and 3189 deletions

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var express = require('express')
@ -12,4 +11,3 @@
// ---------------------------------------------------------------------------
module.exports = router
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var express = require('express')
@ -92,4 +91,3 @@
res.sendStatus(204)
})
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var express = require('express')
@ -52,4 +51,3 @@
res.sendStatus(204)
})
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var config = require('config')
@ -143,4 +142,3 @@
return callback(null)
}
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var constants = require('../initializers/constants')
@ -7,4 +6,3 @@
api: require('./api/' + constants.API_VERSION),
views: require('./views')
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var express = require('express')
@ -26,4 +25,3 @@
res.render('partials/' + directory + '/' + name)
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var validator = require('validator')
@ -31,4 +30,3 @@
// ---------------------------------------------------------------------------
module.exports = customValidators
})()

View File

@ -1,4 +1,3 @@
;(function () {
// Thanks http://tostring.it/2014/06/23/advanced-logging-with-nodejs/
'use strict'
@ -39,4 +38,3 @@
// ---------------------------------------------------------------------------
module.exports = logger
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var config = require('config')
@ -146,4 +145,3 @@
callback(null, { crypted: crypted, password: password })
})
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -108,4 +107,3 @@
params.url, replay.error.code, replay.error.message, replay.number, replay.delay)
})
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var logger = require('./logger')
@ -15,4 +14,3 @@
// ---------------------------------------------------------------------------
module.exports = utils
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var config = require('config')
@ -47,4 +46,3 @@
// ---------------------------------------------------------------------------
module.exports = checker
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
// API version of our pod
@ -41,4 +40,3 @@
function isTestInstance () {
return (process.env.NODE_ENV === 'test')
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var config = require('config')
@ -29,4 +28,3 @@
// ---------------------------------------------------------------------------
module.exports = database
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -221,4 +220,3 @@
callback(null, JSON.parse(body))
})
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -220,4 +219,3 @@
removeBadPods()
})
}
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -49,4 +48,3 @@
// ---------------------------------------------------------------------------
module.exports = videos
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var config = require('config')
@ -158,4 +157,3 @@
// ---------------------------------------------------------------------------
module.exports = webtorrent
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
function webtorrent (args) {
@ -92,4 +91,3 @@
// ---------------------------------------------------------------------------
module.exports = webtorrent
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var cacheMiddleware = {
@ -22,4 +21,3 @@
// ---------------------------------------------------------------------------
module.exports = cacheMiddleware
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var middlewares = {
@ -10,4 +9,3 @@
// ---------------------------------------------------------------------------
module.exports = middlewares
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var reqValidators = {
@ -10,4 +9,3 @@
// ---------------------------------------------------------------------------
module.exports = reqValidators
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var checkErrors = require('./utils').checkErrors
@ -38,4 +37,3 @@
// ---------------------------------------------------------------------------
module.exports = reqValidatorsPod
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var checkErrors = require('./utils').checkErrors
@ -42,4 +41,3 @@
// ---------------------------------------------------------------------------
module.exports = reqValidatorsRemote
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var util = require('util')
@ -24,4 +23,3 @@
// ---------------------------------------------------------------------------
module.exports = reqValidatorsUtils
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var checkErrors = require('./utils').checkErrors
@ -73,4 +72,3 @@
// ---------------------------------------------------------------------------
module.exports = reqValidatorsVideos
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var logger = require('../helpers/logger')
@ -48,4 +47,3 @@
// ---------------------------------------------------------------------------
module.exports = secureMiddleware
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var mongoose = require('mongoose')
@ -87,4 +86,3 @@
// ---------------------------------------------------------------------------
module.exports = Pods
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var mongoose = require('mongoose')
@ -54,4 +53,3 @@
// ---------------------------------------------------------------------------
module.exports = PoolRequests
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -234,4 +233,3 @@
// ---------------------------------------------------------------------------
module.exports = Videos
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -299,4 +298,3 @@
}
})
})
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -249,4 +248,3 @@
}
})
})
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -184,4 +183,3 @@
}
})
})
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
// Order of the tests we want to execute
@ -7,4 +6,3 @@
require('./singlePod')
require('./multiplePods')
require('./friendsAdvanced')
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -327,4 +326,3 @@
}
})
})
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var async = require('async')
@ -145,4 +144,3 @@
}
})
})
})()

View File

@ -1,4 +1,3 @@
;(function () {
'use strict'
var child_process = require('child_process')
@ -184,4 +183,3 @@
// ---------------------------------------------------------------------------
module.exports = testUtils
})()