From f83e27958109b829ba6326efda0679cc032003e5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 25 Dec 2016 09:47:49 +0100 Subject: [PATCH] Fix standard lint --- server/helpers/peertube-crypto.js | 10 --------- server/initializers/constants.js | 1 - .../initializers/migrations/0005-example.js | 22 +++++++++---------- 3 files changed, 11 insertions(+), 22 deletions(-) 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.') +// } -- 2.25.1