Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Jul 1, 2021
1 parent 7f84656 commit 9cf528f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby/src/commands/build-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ const renderHTMLQueue = async (

const renderHTML =
stage === `build-html`
? workerPool.renderHTMLProd
: workerPool.renderHTMLDev
? workerPool.single.renderHTMLProd
: workerPool.single.renderHTMLDev

const uniqueUnsafeBuiltinUsedStacks = new Set<string>()

Expand All @@ -234,7 +234,7 @@ const renderHTMLQueue = async (
payload: pageSegment,
})

for (const [, arrayOfUsages] of Object.entries(
for (const [_pagePath, arrayOfUsages] of Object.entries(
htmlRenderMeta.unsafeBuiltinsUsageByPagePath
)) {
for (const unsafeUsageStack of arrayOfUsages) {
Expand All @@ -249,7 +249,7 @@ const renderHTMLQueue = async (
})
} catch (e) {
if (e?.context?.unsafeBuiltinsUsageByPagePath) {
for (const [, arrayOfUsages] of Object.entries(
for (const [_pagePath, arrayOfUsages] of Object.entries(
e.context.unsafeBuiltinsUsageByPagePath
)) {
// @ts-ignore TS doesn't know arrayOfUsages is Iterable
Expand Down

0 comments on commit 9cf528f

Please sign in to comment.