mirror of https://github.com/Chocobozzz/PeerTube
Fix standard lint
parent
b769007f73
commit
f83e279581
|
@ -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'))
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
|
@ -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.')
|
||||||
}
|
// }
|
||||||
|
|
Loading…
Reference in New Issue