Skip to content

Commit

Permalink
fix(main): remove console.log()s
Browse files Browse the repository at this point in the history
  • Loading branch information
dnotes committed Nov 12, 2024
1 parent f5bf7a6 commit 3241e3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-mirrors-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"quickpickle": patch
---

remove console.log()s. /oops
6 changes: 1 addition & 5 deletions packages/main/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ export const applyHooks = async (hooksName: string, state: any): Promise<void> =
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;
Expand Down

0 comments on commit 3241e3e

Please sign in to comment.