Skip to content

Commit

Permalink
@GitHK review: move assert
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 29, 2023
1 parent 3ac7646 commit 62e9875
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ async def upload_file(request: web.Request) -> web.Response:
)
if query_params.file_size is None and not query_params.is_directory:
# return v1 response
assert len(links.urls) == 1 # nosec
response = {"data": {"link": jsonable_encoder(links.urls[0], by_alias=True)}}
log.debug("Returning v1 response: %s", response)
assert len(links.urls) == 1 # nosec
return web.json_response(response, dumps=json_dumps)

# v2 response
Expand Down

0 comments on commit 62e9875

Please sign in to comment.