format and lint

lmfao why has nobody been doing this
This commit is contained in:
hazycora
2024-07-20 08:08:47 -04:00
parent 62e032fea8
commit 233adf68f7
10 changed files with 109 additions and 71 deletions

View File

@@ -1,4 +1,11 @@
import { ItemType, GetByUrlResponse, SearchResults, Streamer, StreamerWithLogin, StreamerAccount } from './types.js'
import {
ItemType,
GetByUrlResponse,
SearchResults,
Streamer,
StreamerWithLogin,
StreamerAccount
} from './types.js'
interface LucidaOptions {
modules: { [key: string]: Streamer | StreamerWithLogin }
@@ -41,8 +48,8 @@ class Lucida {
async checkAccounts(): Promise<{ [key: string]: StreamerAccount }> {
const results = await Promise.all(
Object.values(this.modules).map(async (e) => {
if (e.getAccountInfo) return (await e.getAccountInfo())
else return {valid: false}
if (e.getAccountInfo) return await e.getAccountInfo()
else return { valid: false }
})
)
const moduleNames = Object.keys(this.modules)