Merge pull request #702 from yoshikouki/clean-up-command

Remove unnecessary assignments
This commit is contained in:
Toran Bruce Richards
2023-04-10 23:00:15 +01:00
committed by GitHub

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"