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, 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)