Skip to content

Commit 2d50cd2

Browse files
committed
refactor: minor conditional in workspace symbols
1 parent 862f43c commit 2d50cd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fortls/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,9 @@ def debug_workspace_symbols(args, server):
157157
for symbol in results:
158158
path = path_from_uri(symbol["location"]["uri"])
159159
sline = symbol["location"]["range"]["start"]["line"]
160+
parent = "null"
160161
if "containerName" in symbol:
161162
parent = symbol["containerName"]
162-
else:
163-
parent = "null"
164163
print(
165164
f" {parent}::{sline} symbol -> {symbol['name']:30} parent = "
166165
f"{os.path.relpath(path, args.debug_rootpath)}"

0 commit comments

Comments
 (0)