aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/video-channel.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-25 16:14:11 +0200
committerChocobozzz <me@florianbigard.com>2021-08-26 10:01:42 +0200
commit98ab5dc81048d47d08a231f17698128f959e59b2 (patch)
tree7f74f835dc35d9f72918c56857f7f28b70d7053f /server/controllers/api/video-channel.ts
parent851675c5591dcab1070183f0ed1b1a788de07d2c (diff)
downloadPeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz
PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst
PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip
Remove useless async
Diffstat (limited to 'server/controllers/api/video-channel.ts')
-rw-r--r--server/controllers/api/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts
index 7bdb33737..a0c6601d9 100644
--- a/server/controllers/api/video-channel.ts
+++ b/server/controllers/api/video-channel.ts
@@ -108,7 +108,7 @@ videoChannelRouter.delete('/:nameWithHost',
108 108
109videoChannelRouter.get('/:nameWithHost', 109videoChannelRouter.get('/:nameWithHost',
110 asyncMiddleware(videoChannelsNameWithHostValidator), 110 asyncMiddleware(videoChannelsNameWithHostValidator),
111 asyncMiddleware(getVideoChannel) 111 getVideoChannel
112) 112)
113 113
114videoChannelRouter.get('/:nameWithHost/video-playlists', 114videoChannelRouter.get('/:nameWithHost/video-playlists',
@@ -281,7 +281,7 @@ async function removeVideoChannel (req: express.Request, res: express.Response)
281 return res.type('json').status(HttpStatusCode.NO_CONTENT_204).end() 281 return res.type('json').status(HttpStatusCode.NO_CONTENT_204).end()
282} 282}
283 283
284async function getVideoChannel (req: express.Request, res: express.Response) { 284function getVideoChannel (req: express.Request, res: express.Response) {
285 const videoChannel = res.locals.videoChannel 285 const videoChannel = res.locals.videoChannel
286 286
287 if (videoChannel.isOutdated()) { 287 if (videoChannel.isOutdated()) {