From d2c4ac80bd33e09b114de4f44240ac1dfe4e628f Mon Sep 17 00:00:00 2001 From: Max Cascone Date: Fri, 16 Aug 2024 12:23:35 -0500 Subject: [PATCH] proper declaration of content --- actions/example-config-updater/dist/index.js | 4 ++-- actions/example-config-updater/src/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/example-config-updater/dist/index.js b/actions/example-config-updater/dist/index.js index 5d7b580..8df51d8 100644 --- a/actions/example-config-updater/dist/index.js +++ b/actions/example-config-updater/dist/index.js @@ -68,10 +68,10 @@ function run() { // if the config input is not null or not empty, use it // otherwise, use a default value if (config && config.length > 0) { - const content = JSON.parse(config); + content = JSON.parse(config); } else { - const content = { + content = { max: "cascone", }; } diff --git a/actions/example-config-updater/src/index.ts b/actions/example-config-updater/src/index.ts index f6d28ae..b6861cd 100644 --- a/actions/example-config-updater/src/index.ts +++ b/actions/example-config-updater/src/index.ts @@ -28,10 +28,10 @@ export async function run() { // if the config input is not null or not empty, use it // otherwise, use a default value if (config && config.length > 0) { - const content = JSON.parse(config); + content = JSON.parse(config); } else { - const content = { + content = { max: "cascone", }; }