mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-23 18:50:24 +00:00
Fix unnecessary conversion.
This commit is contained in:
parent
430e98d83a
commit
558e3bf797
@ -807,11 +807,10 @@ class StorageClientImmutables(object):
|
|||||||
url,
|
url,
|
||||||
)
|
)
|
||||||
if response.code == http.OK:
|
if response.code == http.OK:
|
||||||
body = cast(
|
return cast(
|
||||||
Set[int],
|
Set[int],
|
||||||
await self._client.decode_cbor(response, _SCHEMAS["list_shares"]),
|
await self._client.decode_cbor(response, _SCHEMAS["list_shares"]),
|
||||||
)
|
)
|
||||||
return set(body)
|
|
||||||
else:
|
else:
|
||||||
raise ClientException(response.code)
|
raise ClientException(response.code)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user