From b33e0d0947007af0c22dd51b743eea230e96eb1c Mon Sep 17 00:00:00 2001 From: yofukashino Date: Sat, 14 Sep 2024 18:53:26 +0530 Subject: [PATCH] prettier --- src/injections/AudioResolver.ts | 42 ++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/injections/AudioResolver.ts b/src/injections/AudioResolver.ts index e0df148..530ab39 100644 --- a/src/injections/AudioResolver.ts +++ b/src/injections/AudioResolver.ts @@ -1,21 +1,21 @@ -import { PluginInjector } from "../index"; -import Modules from "../lib/requiredModules"; -import { Sounds } from "../lib/consts"; - -export default async (): Promise => { - const AudioResolver = await Modules.AudioResolverPromise; - PluginInjector.instead(AudioResolver, "exports", ([sound]: [string], res) => { - switch (sound) { - case `./${Sounds.Enable}.mp3`: { - return Sounds.EnableURL; - } - case `./${Sounds.Disable}.mp3`: { - return Sounds.DisableURL; - } - default: - if (AudioResolver.exports.keys().includes(sound)) { - return res(sound); - } - } - }); -}; +import { PluginInjector } from "../index"; +import Modules from "../lib/requiredModules"; +import { Sounds } from "../lib/consts"; + +export default async (): Promise => { + const AudioResolver = await Modules.AudioResolverPromise; + PluginInjector.instead(AudioResolver, "exports", ([sound]: [string], res) => { + switch (sound) { + case `./${Sounds.Enable}.mp3`: { + return Sounds.EnableURL; + } + case `./${Sounds.Disable}.mp3`: { + return Sounds.DisableURL; + } + default: + if (AudioResolver.exports.keys().includes(sound)) { + return res(sound); + } + } + }); +};