From: Chocobozzz Date: Wed, 12 Jul 2017 12:58:34 +0000 (+0200) Subject: Fix lint X-Git-Tag: v0.0.1-alpha~364 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0b7db72af30403fb6c7d906a4c239a5519cf934d;p=oweals%2Fpeertube.git Fix lint --- diff --git a/server/controllers/client.ts b/server/controllers/client.ts index 1324e62cd..b23f7e1ae 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts @@ -6,7 +6,6 @@ import * as Promise from 'bluebird' import { database as db } from '../initializers/database' import { CONFIG, - REMOTE_SCHEME, STATIC_PATHS, STATIC_MAX_AGE, OPENGRAPH_COMMENT diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 2fd14131e..b20bafc76 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts @@ -37,7 +37,6 @@ staticRouter.use( ) // Video previews path for express -const previewsPhysicalPath = CONFIG.STORAGE.PREVIEWS_DIR staticRouter.use( STATIC_PATHS.PREVIEWS + ':uuid.jpg', getPreview diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index 3c5a77df9..26e92be0b 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts @@ -1,12 +1,10 @@ -import { join } from 'path' -import * as config from 'config' import * as passwordGenerator from 'password-generator' import * as Promise from 'bluebird' import { database as db } from './database' import { USER_ROLES, CONFIG, LAST_MIGRATION_VERSION, CACHE } from './constants' import { clientsExist, usersExist } from './checker' -import { logger, createCertsIfNotExist, root, mkdirpPromise, rimrafPromise } from '../helpers' +import { logger, createCertsIfNotExist, mkdirpPromise, rimrafPromise } from '../helpers' function installApplication () { return db.sequelize.sync() diff --git a/server/lib/cache/videos-preview-cache.ts b/server/lib/cache/videos-preview-cache.ts index 9d365e496..09e2e9a0d 100644 --- a/server/lib/cache/videos-preview-cache.ts +++ b/server/lib/cache/videos-preview-cache.ts @@ -1,11 +1,10 @@ -import * as request from 'request' import * as asyncLRU from 'async-lru' import { join } from 'path' import { createWriteStream } from 'fs' import * as Promise from 'bluebird' import { database as db, CONFIG, CACHE } from '../../initializers' -import { logger, writeFilePromise, unlinkPromise } from '../../helpers' +import { logger, unlinkPromise } from '../../helpers' import { VideoInstance } from '../../models' import { fetchRemotePreview } from '../../lib'