From cb298c8c900c87fcd3c3566b74b11856afd3dcf2 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Tue, 7 Apr 2020 17:50:07 -0400 Subject: [PATCH] linkcheck correction --- website/package.json | 2 +- website/pages/downloads/index.jsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/package.json b/website/package.json index da5c790e4..83d8ad934 100644 --- a/website/package.json +++ b/website/package.json @@ -67,6 +67,6 @@ "lint": "next-hashicorp lint", "start": "rm -rf .next/cache/next-babel-loader/ && next dev", "static": "npm run build && npm run export && cp _redirects out/.", - "linkcheck": "linkcheck https://www.packer.io" + "linkcheck": "linkcheck https://packer.io" } } diff --git a/website/pages/downloads/index.jsx b/website/pages/downloads/index.jsx index 61c9b8f48..ebe6042a8 100644 --- a/website/pages/downloads/index.jsx +++ b/website/pages/downloads/index.jsx @@ -19,8 +19,8 @@ export default function DownloadsPage({ downloadData }) { export async function getStaticProps() { return fetch(`https://releases.hashicorp.com/packer/${VERSION}/index.json`) - .then(r => r.json()) - .then(r => { + .then((r) => r.json()) + .then((r) => { // TODO: restructure product-downloader to run this logic internally return r.builds.reduce((acc, build) => { if (!acc[build.os]) acc[build.os] = {} @@ -28,7 +28,7 @@ export async function getStaticProps() { return acc }, {}) }) - .then(r => ({ props: { downloadData: r } })) + .then((r) => ({ props: { downloadData: r } })) .catch(() => { throw new Error( `--------------------------------------------------------