[object Object]

← back to Greenland China

chore: lint defensive null-init (session close)

3bbaf261d9c4c9215ed8ee7cd58133895090b49c · 2026-07-01 10:51:33 -0700 · Steve

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 3bbaf261d9c4c9215ed8ee7cd58133895090b49c
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Jul 1 10:51:33 2026 -0700

    chore: lint defensive null-init (session close)
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 scripts/scrape.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/scrape.js b/scripts/scrape.js
index 3cde6bb..992eac5 100644
--- a/scripts/scrape.js
+++ b/scripts/scrape.js
@@ -123,7 +123,7 @@ async function main() {
     const rawName = lr.name || d.name || null;
     const rawCode = lr.code || d.code || null;
     const firstModel = colorways.map((c) => c.model).find((m) => m && codeRe.test(m));
-    let sku, pattern, collection = null, colorName = null;
+    let sku = null, pattern = null, collection = null, colorName = null;
     if (codeRe.test(rawName || '')) { sku = rawName; pattern = rawName; colorName = rawCode; }
     else if (firstModel) { sku = firstModel; pattern = rawName; collection = (rawCode && !codeRe.test(rawCode)) ? rawCode : null; }
     else if (codeRe.test(rawCode || '')) { sku = rawCode; pattern = rawName; }

← 7a9094b greenland: fix sku/color field-mapping + colorway parser  ·  back to Greenland China  ·  Retrofit viewer to internal-line-viewer spec (astek 9944 pat c534957 →