From: Chocobozzz Date: Sun, 25 Dec 2016 08:47:49 +0000 (+0100) Subject: Fix standard lint X-Git-Tag: v0.0.1-alpha~574^2~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f83e27958109b829ba6326efda0679cc032003e5;p=oweals%2Fpeertube.git Fix standard lint --- diff --git a/server/helpers/peertube-crypto.js b/server/helpers/peertube-crypto.js index 2e07df00e..302ddca58 100644 --- a/server/helpers/peertube-crypto.js +++ b/server/helpers/peertube-crypto.js @@ -9,8 +9,6 @@ const ursa = require('ursa') const constants = require('../initializers/constants') const logger = require('./logger') -const algorithm = 'aes-256-ctr' - const peertubeCrypto = { checkSignature, 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')) - }) -} diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 6f39b65da..fc501845a 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -1,7 +1,6 @@ 'use strict' const config = require('config') -const maxBy = require('lodash/maxBy') const path = require('path') // --------------------------------------------------------------------------- diff --git a/server/initializers/migrations/0005-example.js b/server/initializers/migrations/0005-example.js index 481c2c4dd..cedc42919 100644 --- a/server/initializers/migrations/0005-example.js +++ b/server/initializers/migrations/0005-example.js @@ -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 -exports.up = function (options, callback) { - // db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback) -} +// // options contains the transaction +// exports.up = function (options, callback) { +// db.Application.create({ migrationVersion: 42 }, { transaction: options.transaction }).asCallback(callback) +// } -exports.down = function (options, callback) { - throw new Error('Not implemented.') -} +// exports.down = function (options, callback) { +// throw new Error('Not implemented.') +// }