Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jun 12, 2024
1 parent cadc27f commit 84d0931
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/chpl-language-server/src/chpl-shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ def run_toplevel():
for key, value in from_file.items():
commands[key].append(value)


# Skip if we would overwrite an existing file with empty commands
skip_cls = os.path.exists(".cls-commands.json") and len(commands.keys()) == 0
skip_cls = (
os.path.exists(".cls-commands.json") and len(commands.keys()) == 0
)
if not skip_cls:
with open(".cls-commands.json", "w") as f:
json.dump(commands, f)
Expand Down

0 comments on commit 84d0931

Please sign in to comment.