chore: replace the last 'var' with 'const'

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
Martin d'Allens 2023-11-19 19:37:56 +01:00 committed by Andrew Calcutt
parent ec68cc6424
commit b0157f3206
2 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
import * as http from 'http'; import * as http from 'http';
var options = { const options = {
timeout: 2000, timeout: 2000,
}; };
var url = 'http://localhost:8080/health'; const url = 'http://localhost:8080/health';
var request = http.request(url, options, (res) => { const request = http.request(url, options, (res) => {
console.log(`STATUS: ${res.statusCode}`); console.log(`STATUS: ${res.statusCode}`);
if (res.statusCode == 200) { if (res.statusCode == 200) {
process.exit(0); process.exit(0);

View file

@ -765,7 +765,7 @@ export const serve_rendered = {
image.resize(width * scale, height * scale); image.resize(width * scale, height * scale);
} }
var composite_array = []; const composite_array = [];
if (opt_overlay) { if (opt_overlay) {
composite_array.push({ input: opt_overlay }); composite_array.push({ input: opt_overlay });
} }