Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Remove unnecessary assignments

yoshikouki527e084f39c7
diff --git a/scripts/commands.py b/scripts/commands.py
index 073ecc56a9..ce5d04ff48 100644
--- a/scripts/commands.py
+++ b/scripts/commands.py
@@ -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"