Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
Conditional operator unnecessary
  • Loading branch information
skieffer committed Nov 25, 2024
1 parent 04f4b06 commit 439ce96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/json/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function updateModel() {
let json = JSON5.parse(editor.getValue());

// Force PARENT edge coordinates, so that Sprotty can draw the graph correctly.
let props = json?.properties || {};
let props = json.properties || {};
props["org.eclipse.elk.json.edgeCoords"] = "PARENT";
json.properties = props;

Expand Down

0 comments on commit 439ce96

Please sign in to comment.