mirror of
https://github.com/tiennm99/serena.git
synced 2026-09-03 08:19:19 +00:00
Moved assertion to the right place
This commit is contained in:
committed by
Dominik Jain
parent
21c26b52f8
commit
8fca531e7a
+1
-1
@@ -872,6 +872,7 @@ class SolidLanguageServer(ABC):
|
||||
logging.WARNING,
|
||||
)
|
||||
return [], []
|
||||
assert isinstance(response, list), f"Unexpected response from Language Server: {response}"
|
||||
self.logger.log(
|
||||
f"Received {len(response)} document symbols for {relative_file_path} from the Language Server",
|
||||
logging.DEBUG,
|
||||
@@ -911,7 +912,6 @@ class SolidLanguageServer(ABC):
|
||||
item[LSPConstants.CHILDREN] = children
|
||||
|
||||
flat_all_symbol_list: list[ls_types.UnifiedSymbolInformation] = []
|
||||
assert isinstance(response, list), f"Unexpected response from Language Server: {response}"
|
||||
root_nodes: list[ls_types.UnifiedSymbolInformation] = []
|
||||
for root_item in response:
|
||||
if "range" not in root_item and "location" not in root_item:
|
||||
|
||||
Reference in New Issue
Block a user