diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-12 17:00:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-12 17:00:21 +0200 |
commit | 1a578165f9112fc2a9ebddea91d2258ebd1f6ae7 (patch) | |
tree | 79a52a00ff193b0703f0a209989174af609e337f /server | |
parent | 8bf8e56e01fdea28fcb2e5418bd3f6d5a76805fa (diff) | |
download | PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.tar.gz PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.tar.zst PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.zip |
Fix lint
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/peertube-socket.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/peertube-socket.ts b/server/lib/peertube-socket.ts index c91407a59..0740e378e 100644 --- a/server/lib/peertube-socket.ts +++ b/server/lib/peertube-socket.ts | |||
@@ -42,12 +42,14 @@ class PeerTubeSocket { | |||
42 | socket.on('subscribe', ({ videoId }) => { | 42 | socket.on('subscribe', ({ videoId }) => { |
43 | if (!isIdValid(videoId)) return | 43 | if (!isIdValid(videoId)) return |
44 | 44 | ||
45 | /* eslint-disable @typescript-eslint/no-floating-promises */ | ||
45 | socket.join(videoId) | 46 | socket.join(videoId) |
46 | }) | 47 | }) |
47 | 48 | ||
48 | socket.on('unsubscribe', ({ videoId }) => { | 49 | socket.on('unsubscribe', ({ videoId }) => { |
49 | if (!isIdValid(videoId)) return | 50 | if (!isIdValid(videoId)) return |
50 | 51 | ||
52 | /* eslint-disable @typescript-eslint/no-floating-promises */ | ||
51 | socket.leave(videoId) | 53 | socket.leave(videoId) |
52 | }) | 54 | }) |
53 | }) | 55 | }) |