mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Remove unnecessary assignments
This commit is contained in:
@@ -42,9 +42,6 @@ def get_command(response):
|
|||||||
# Use an empty dictionary if 'args' field is not present in 'command' object
|
# Use an empty dictionary if 'args' field is not present in 'command' object
|
||||||
arguments = command.get("args", {})
|
arguments = command.get("args", {})
|
||||||
|
|
||||||
if not arguments:
|
|
||||||
arguments = {}
|
|
||||||
|
|
||||||
return command_name, arguments
|
return command_name, arguments
|
||||||
except json.decoder.JSONDecodeError:
|
except json.decoder.JSONDecodeError:
|
||||||
return "Error:", "Invalid JSON"
|
return "Error:", "Invalid JSON"
|
||||||
|
|||||||
Reference in New Issue
Block a user