From 527e084f39c7c05406a42c9b83ebd87c3194b231 Mon Sep 17 00:00:00 2001 From: yoshikouki Date: Mon, 10 Apr 2023 22:57:41 +0900 Subject: [PATCH] Remove unnecessary assignments --- scripts/commands.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/commands.py b/scripts/commands.py index 073ecc56..ce5d04ff 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"