Skip to content

Commit

Permalink
use const instead of let
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Feb 23, 2025
1 parent abe65d5 commit a7bd836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diagrams.net/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { SyntaxError, TimeoutError, Worker } from './worker.js'
micro.serve(async (req, res) => {
// Add a /health route that renders a sample diagram by calling the worker
if (req.url === '/health') {
let sample = `<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>`
const sample = `<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>`
await worker.convert(new Task(sample, false), new URLSearchParams())

// We don't actually care about the output, we just want to make sure the worker is up and running
Expand Down

0 comments on commit a7bd836

Please sign in to comment.