Skip to content

Commit

Permalink
Fix LSP bridge if result evaluates to false
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP authored and daveleroy committed Feb 2, 2023
1 parent 10925bb commit 8cfb760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/adapters/util/lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ async def request(session_name: str, method: str, params: Any) -> Any:
del _futures[_id]


if resolve := command_response.get('resolve'):
return resolve
if 'resolve' in command_response:
return command_response.get('resolve')

raise core.Error(command_response.get('reject') or 'Expected `resolve` or `reject`')

Expand Down

0 comments on commit 8cfb760

Please sign in to comment.