style: eslint

This commit is contained in:
Jacob Nguyen
2022-06-27 14:24:54 -05:00
parent 9320d4395a
commit 4c2a7e8c90
2 changed files with 2 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ import {
} from '../utilities/predicates';
import { filterCorrectModule } from './observableHandling';
import { CommandType } from '../structures/enums';
import type { Result } from 'ts-results';
import type { AutocompleteInteraction } from 'discord.js';
import { asyncResolveArray } from '../utilities/asyncResolveArray';
@@ -211,7 +210,7 @@ export function onInteractionCreate(wrapper: Wrapper) {
)
.subscribe({
async next({ mod, res: eventPluginRes, execute }) {
const ePlugArr: Result<void, void>[] = await asyncResolveArray(eventPluginRes);
const ePlugArr = await asyncResolveArray(eventPluginRes);
if (ePlugArr.every(e => e.ok)) {
await execute();
wrapper.sernEmitter?.emit('module.activate', { type: 'success', module: mod! });

View File

@@ -1,7 +1,7 @@
import { ApplicationCommandType, ComponentType } from 'discord.js';
import { readdirSync, statSync } from 'fs';
import { join } from 'path';
import { from, Observable, throwError } from 'rxjs';
import { from, Observable } from 'rxjs';
import type { Module } from '../structures/module';
import { SernError } from '../structures/errors';
import type { Result } from 'ts-results';