diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-19 14:22:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 14:22:38 +0100 |
commit | 54b38063249c0c903f13491eaa84f502f4dffe79 (patch) | |
tree | 9c3fa451f336e423eefd13ee38f47519d263cd57 /server/middlewares | |
parent | 0405ab52dc0f445b88f8de76e30d6e6719196023 (diff) | |
download | PeerTube-54b38063249c0c903f13491eaa84f502f4dffe79.tar.gz PeerTube-54b38063249c0c903f13491eaa84f502f4dffe79.tar.zst PeerTube-54b38063249c0c903f13491eaa84f502f4dffe79.zip |
Fix lint
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/servers.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/middlewares/servers.ts b/server/middlewares/servers.ts index 87bbe9fd7..e16bc4a86 100644 --- a/server/middlewares/servers.ts +++ b/server/middlewares/servers.ts | |||
@@ -1,9 +1,7 @@ | |||
1 | import 'express-validator' | ||
2 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import 'express-validator' | ||
3 | import { getHostWithPort } from '../helpers' | 3 | import { getHostWithPort } from '../helpers' |
4 | 4 | ||
5 | import { REMOTE_SCHEME } from '../initializers' | ||
6 | |||
7 | function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) { | 5 | function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) { |
8 | if (!req.body.hosts) return next() | 6 | if (!req.body.hosts) return next() |
9 | 7 | ||