fix: Incorrect indentation (eslint)

This commit is contained in:
NGPixel
2017-06-24 16:31:32 -04:00
committed by Nicolas Giard
parent f37cbac332
commit a1b6dfb308
8 changed files with 72 additions and 80 deletions

View File

@@ -19,7 +19,7 @@ module.exports = {
*
* @return {Object} DB instance
*/
init () {
init() {
let self = this
let dbModelsPath = path.join(SERVERPATH, 'models')
@@ -44,14 +44,14 @@ module.exports = {
// Load DB Models
fs
.readdirSync(dbModelsPath)
.filter(function (file) {
return (file.indexOf('.') !== 0)
})
.forEach(function (file) {
let modelName = _.upperFirst(_.camelCase(_.split(file, '.')[0]))
self[modelName] = require(path.join(dbModelsPath, file))
})
.readdirSync(dbModelsPath)
.filter(function (file) {
return (file.indexOf('.') !== 0)
})
.forEach(function (file) {
let modelName = _.upperFirst(_.camelCase(_.split(file, '.')[0]))
self[modelName] = require(path.join(dbModelsPath, file))
})
// Connect