Fix unnecessary conversion.

This commit is contained in:
Itamar Turner-Trauring 2023-04-25 08:46:57 -04:00
parent 430e98d83a
commit 558e3bf797

View File

@ -807,11 +807,10 @@ class StorageClientImmutables(object):
url,
)
if response.code == http.OK:
body = cast(
return cast(
Set[int],
await self._client.decode_cbor(response, _SCHEMAS["list_shares"]),
)
return set(body)
else:
raise ClientException(response.code)