From b0157f3206c1892294db36c3aff191f8122c7ac2 Mon Sep 17 00:00:00 2001 From: Martin d'Allens Date: Sun, 19 Nov 2023 19:37:56 +0100 Subject: [PATCH] chore: replace the last 'var' with 'const' Signed-off-by: Martin d'Allens --- src/healthcheck.js | 6 +++--- src/serve_rendered.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/healthcheck.js b/src/healthcheck.js index ef3c3d7..b3a0ab0 100644 --- a/src/healthcheck.js +++ b/src/healthcheck.js @@ -1,9 +1,9 @@ import * as http from 'http'; -var options = { +const options = { timeout: 2000, }; -var url = 'http://localhost:8080/health'; -var request = http.request(url, options, (res) => { +const url = 'http://localhost:8080/health'; +const request = http.request(url, options, (res) => { console.log(`STATUS: ${res.statusCode}`); if (res.statusCode == 200) { process.exit(0); diff --git a/src/serve_rendered.js b/src/serve_rendered.js index f8b33f7..1108992 100644 --- a/src/serve_rendered.js +++ b/src/serve_rendered.js @@ -765,7 +765,7 @@ export const serve_rendered = { image.resize(width * scale, height * scale); } - var composite_array = []; + const composite_array = []; if (opt_overlay) { composite_array.push({ input: opt_overlay }); }