mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix eslint
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ class Util {
|
|||||||
static parseTopic(channels, setting, user) {
|
static parseTopic(channels, setting, user) {
|
||||||
const channelList = channels.filter(c => {
|
const channelList = channels.filter(c => {
|
||||||
const topic = c.topic || '';
|
const topic = c.topic || '';
|
||||||
if (topic.includes(`<${setting}>`) && c.type === 'text' && c.permissionsFor(user).has('SEND_MESSAGES')) return true;
|
if (topic.includes(`<${setting}>`) && c.type === 'text' && c.permissionsFor(user).has('SEND_MESSAGES')) return true; // eslint-disable-line max-len
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
if (!channelList) return false;
|
if (!channelList) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user