From 84d093163e30fe68278a0190263d1a0a09bfe5e0 Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Wed, 12 Jun 2024 07:58:36 -0700 Subject: [PATCH] format Signed-off-by: Jade Abraham --- tools/chpl-language-server/src/chpl-shim.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/chpl-language-server/src/chpl-shim.py b/tools/chpl-language-server/src/chpl-shim.py index 6c12c810d9c6..1963ef909c47 100755 --- a/tools/chpl-language-server/src/chpl-shim.py +++ b/tools/chpl-language-server/src/chpl-shim.py @@ -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)