From 3241e3e792c207b248794bd3f8f7fbc2e710e9b3 Mon Sep 17 00:00:00 2001 From: David Hunt Date: Tue, 12 Nov 2024 14:44:40 +1300 Subject: [PATCH] fix(main): remove console.log()s --- .changeset/olive-mirrors-explode.md | 5 +++++ packages/main/src/hooks.ts | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .changeset/olive-mirrors-explode.md diff --git a/.changeset/olive-mirrors-explode.md b/.changeset/olive-mirrors-explode.md new file mode 100644 index 0000000..694db83 --- /dev/null +++ b/.changeset/olive-mirrors-explode.md @@ -0,0 +1,5 @@ +--- +"quickpickle": patch +--- + +remove console.log()s. /oops diff --git a/packages/main/src/hooks.ts b/packages/main/src/hooks.ts index 87a403b..ddeb854 100644 --- a/packages/main/src/hooks.ts +++ b/packages/main/src/hooks.ts @@ -37,12 +37,8 @@ export const applyHooks = async (hooksName: string, state: any): Promise = for (let i = 0; i < hooks.length; i++) { let hook = hooks[i] const result = hook.tagsFunction(state.info.tags.map((t:string) => t.toLowerCase())); - if (hooksName === 'beforeAll') console.log('hook.tags:N= ', hook.tags, ' result: ', result) if (result) { - if (hooksName === 'beforeAll') console.log('FWAH') - await hook.f(state).then(() => { - if (hooksName === 'beforeAll') console.log('FWAH!!!') - }); + await hook.f(state) } } return state;