chore: replace the last 'var' with 'const'
Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
parent
ec68cc6424
commit
b0157f3206
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue