Cleanup unused function return values (#72512)

This commit is contained in:
Marc Mueller 2022-05-26 13:17:08 +02:00 committed by GitHub
parent e8feecf50b
commit 48cc3638fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 10 deletions

View file

@ -1290,11 +1290,8 @@ async def websocket_remove_failed_node(
connection.subscriptions[msg["id"]] = async_cleanup
msg[DATA_UNSUBSCRIBE] = unsubs = [controller.on("node removed", node_removed)]
result = await controller.async_remove_failed_node(node.node_id)
connection.send_result(
msg[ID],
result,
)
await controller.async_remove_failed_node(node.node_id)
connection.send_result(msg[ID])
@websocket_api.require_admin
@ -1469,8 +1466,8 @@ async def websocket_refresh_node_info(
node.on("interview failed", forward_event),
]
result = await node.async_refresh_info()
connection.send_result(msg[ID], result)
await node.async_refresh_info()
connection.send_result(msg[ID])
@websocket_api.require_admin