Fix standard lint

pull/30/head
Chocobozzz 2016-12-25 09:47:49 +01:00
parent b769007f73
commit f83e279581
3 changed files with 11 additions and 22 deletions

View File

@ -9,8 +9,6 @@ const ursa = require('ursa')
const constants = require('../initializers/constants') const constants = require('../initializers/constants')
const logger = require('./logger') const logger = require('./logger')
const algorithm = 'aes-256-ctr'
const peertubeCrypto = { const peertubeCrypto = {
checkSignature, checkSignature,
comparePassword, comparePassword,
@ -113,11 +111,3 @@ function createCerts (callback) {
}) })
}) })
} }
function generatePassword (callback) {
crypto.randomBytes(32, function (err, buf) {
if (err) return callback(err)
callback(null, buf.toString('utf8'))
})
}

View File

@ -1,7 +1,6 @@
'use strict' 'use strict'
const config = require('config') const config = require('config')
const maxBy = require('lodash/maxBy')
const path = require('path') const path = require('path')
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@ -1,14 +1,14 @@
/* // /*
This is just an example. // This is just an example.
*/ // */
const db = require('../database') // const db = require('../database')
// options contains the transaction // // options contains the transaction
exports.up = function (options, callback) { // exports.up = function (options, callback) {
// db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback) // db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback)
} // }
exports.down = function (options, callback) { // exports.down = function (options, callback) {
throw new Error('Not implemented.') // throw new Error('Not implemented.')
} // }