Skip to content

Commit

Permalink
There are no NodeResources from nothing
Browse files Browse the repository at this point in the history
i may be wrong with that assessment.
  • Loading branch information
funkyfuture committed Nov 3, 2024
1 parent 15a08e6 commit 7773ffc
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions snakesist/exist_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,15 @@ class NodeResource:
def __init__(
self,
exist_client: "ExistClient",
query_result: Optional[QueryResultItem] = None,
query_result: QueryResultItem,
):
self.node: Optional[NodeBase]

self._exist_client = exist_client

if query_result:
(
self._abs_resource_id,
self._node_id,
self._document_path,
self.node,
) = query_result
else:
self._abs_resource_id = self._node_id = ""
self.node = None
self._document_path = ""
(
self._abs_resource_id,
self._node_id,
self._document_path,
self.node,
) = query_result

def __str__(self):
return str(self.node)
Expand Down

0 comments on commit 7773ffc

Please sign in to comment.