Remove unnecessary assignments

This commit is contained in:
yoshikouki
2023-04-10 22:57:41 +09:00
parent 4d42e14d3d
commit 527e084f39

View File

@@ -42,9 +42,6 @@ def get_command(response):
# Use an empty dictionary if 'args' field is not present in 'command' object
arguments = command.get("args", {})
if not arguments:
arguments = {}
return command_name, arguments
except json.decoder.JSONDecodeError:
return "Error:", "Invalid JSON"