From 58513552487813c668ed3bf23d8271e59d17b56c Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:02:04 -0400 Subject: [PATCH] fix formatting --- src/plugins/devCompanion.dev/index.tsx | 4 ++-- src/plugins/devCompanion.dev/util.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/devCompanion.dev/index.tsx b/src/plugins/devCompanion.dev/index.tsx index 22a10dba0..3c1ccd52e 100644 --- a/src/plugins/devCompanion.dev/index.tsx +++ b/src/plugins/devCompanion.dev/index.tsx @@ -36,15 +36,15 @@ export const settings = definePluginSettings({ }, usePatchedModule: { description: "On extract requests, reply with the current patched module (if it is patched) instead of the original", - default: true, type: OptionType.BOOLEAN, + default: true, } }); export default definePlugin({ name: "DevCompanion", description: "Dev Companion Plugin", - authors: [Devs.Ven, Devs.sadan], + authors: [Devs.Ven, Devs.sadan, Devs.Samwich], // we need to be reporter testable to run and give the reuslts reporterTestable: IS_COMPANION_TEST ? undefined : ReporterTestable.None, settings, diff --git a/src/plugins/devCompanion.dev/util.tsx b/src/plugins/devCompanion.dev/util.tsx index a623f131e..47e25ce6c 100644 --- a/src/plugins/devCompanion.dev/util.tsx +++ b/src/plugins/devCompanion.dev/util.tsx @@ -69,7 +69,8 @@ export function extractModule(id: number, patched = settings.store.usePatchedMod if (!module) throw new Error("No module found for module id:" + id); return patched ? module.$$vencordPatchedSource ?? module.original.toString() : module.original.toString(); -} export function parseNode(node: Node) { +} +export function parseNode(node: Node) { switch (node.type) { case "string": return node.value;