Skip to content

Commit 061964c

Browse files
committed
chore(ruff): remove unnecessary assignment
1 parent f923f4a commit 061964c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

onekey_client/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,9 @@ def upload_firmware(
219219
raise errors.QueryError(res["createFirmwareUpload"]["errors"])
220220

221221
upload_url = res["createFirmwareUpload"]["uploadUrl"]
222-
res = self._post_with_token(
222+
return self._post_with_token(
223223
upload_url, files={"firmware": path.open("rb")}, timeout=timeout
224224
)
225-
return res
226225

227226
@_tenant_required
228227
def get_product_groups(self):

0 commit comments

Comments
 (0)