refactor: Clean up unused variables and improve code readability

This commit is contained in:
晴猫
2025-05-01 07:24:52 +09:00
parent e4959f0386
commit 45c64208b4
13 changed files with 9 additions and 29 deletions

View File

@@ -50,8 +50,6 @@ class MaiEmoji:
async def initialize_hash_format(self):
"""从文件创建表情包实例, 计算哈希值和格式"""
image_base64 = None
image_bytes = None
try:
# 使用 full_path 检查文件是否存在
if not os.path.exists(self.full_path):