Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 2, 2024
1 parent 8509b8d commit 1bd6a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycrdt_websocket/ystore.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async def read(self) -> AsyncIterator[tuple[bytes, bytes, float]]:
Returns:
A tuple of (update, metadata, timestamp) for each update.
"""
if not hasattr(self, "db_initialized"):
if not hasattr(self, "db_initialized"):
raise RuntimeError("ystore is not started")
await self.db_initialized.wait()
try:
Expand All @@ -438,7 +438,7 @@ async def write(self, data: bytes) -> None:
Arguments:
data: The update to store.
"""
if not hasattr(self, "db_initialized"):
if not hasattr(self, "db_initialized"):
raise RuntimeError("ystore is not started")
await self.db_initialized.wait()
async with self.lock:
Expand Down

0 comments on commit 1bd6a6b

Please sign in to comment.