From 549f8e64c55034fbf1a9e5b03435103dbe97a27f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 16:53:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pycrdt_websocket/ystore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pycrdt_websocket/ystore.py b/pycrdt_websocket/ystore.py index 5a5116b..37c65d4 100644 --- a/pycrdt_websocket/ystore.py +++ b/pycrdt_websocket/ystore.py @@ -413,7 +413,7 @@ async def read(self) -> AsyncIterator[tuple[bytes, bytes, float]]: Returns: A tuple of (update, metadata, timestamp) for each update. """ - if self.db_initialized is None: + if self.db_initialized is None: raise RuntimeError("ystore is not started") await self.db_initialized.wait() try: @@ -438,7 +438,7 @@ async def write(self, data: bytes) -> None: Arguments: data: The update to store. """ - if self.db_initialized is None: + if self.db_initialized is None: raise RuntimeError("ystore is not started") await self.db_initialized.wait() async with self.lock: