mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix linting for server (except for length of apidoc)
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import GroupChatReporter from './groupChatReporter';
|
||||
import InboxChatReporter from './inboxChatReporter';
|
||||
|
||||
export function chatReporterFactory (type, req, res) {
|
||||
export function chatReporterFactory (type, req, res) { // eslint-disable-line import/prefer-default-export, max-len
|
||||
if (type === 'Group') {
|
||||
return new GroupChatReporter(req, res);
|
||||
} if (type === 'Inbox') {
|
||||
return new InboxChatReporter(req, res);
|
||||
}
|
||||
|
||||
throw new Error('Invalid chat reporter type.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user