From b0dacf13d3d64f158812a5aae78e41a41327d2c3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:10:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/fsspec_xrootd/xrootd.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fsspec_xrootd/xrootd.py b/src/fsspec_xrootd/xrootd.py index a16f9b5..1a5ceb4 100644 --- a/src/fsspec_xrootd/xrootd.py +++ b/src/fsspec_xrootd/xrootd.py @@ -381,9 +381,7 @@ async def _touch(self, path: str, truncate: bool = False, **kwargs: Any) -> None if not status.ok: raise OSError(f"Impossible to create file in EOS: {status.message}") if truncate or not await self._exists(path): - status, _ = await _async_wrap(f.truncate)( - size=0, timeout=self.timeout - ) + status, _ = await _async_wrap(f.truncate)(size=0, timeout=self.timeout) else: len = await self._info(path) status, _ = await _async_wrap(f.truncate)( @@ -391,7 +389,7 @@ async def _touch(self, path: str, truncate: bool = False, **kwargs: Any) -> None timeout=self.timeout, ) f.close() - else: + else: if truncate or not await self._exists(path): status, _ = await _async_wrap(self._myclient.truncate)( path, size=0, timeout=self.timeout