summary refs log tree commit diff
path: root/api/scripts/generate_openapi.js
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-07-18 18:30:53 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-09 23:28:27 +0200
commite536fb2f72e4883979b451b60b12c44f5f94313c (patch)
tree9c7fccb12c5aeec560d3c223a3b6e969e8d95cd9 /api/scripts/generate_openapi.js
parentUpdate User.ts (diff)
downloadserver-e536fb2f72e4883979b451b60b12c44f5f94313c.tar.xz
replace all var with let (reduces warnings)
Diffstat (limited to 'api/scripts/generate_openapi.js')
-rw-r--r--api/scripts/generate_openapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/scripts/generate_openapi.js b/api/scripts/generate_openapi.js

index c9de9fa6..9624a5b9 100644 --- a/api/scripts/generate_openapi.js +++ b/api/scripts/generate_openapi.js
@@ -11,7 +11,7 @@ const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" })); const specification = JSON.parse(fs.readFileSync(openapiPath, { encoding: "utf8" })); function combineSchemas(schemas) { - var definitions = {}; + let definitions = {}; for (const name in schemas) { definitions = {