From 7f8941745f2e1cb6aab0db49666c9776f59b49cf Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Sat, 10 May 2025 22:51:50 +0800 Subject: [PATCH] clean code --- astrbot/core/config/astrbot_config.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/astrbot/core/config/astrbot_config.py b/astrbot/core/config/astrbot_config.py index c43536ea5..1ee0fac7f 100644 --- a/astrbot/core/config/astrbot_config.py +++ b/astrbot/core/config/astrbot_config.py @@ -46,8 +46,6 @@ class AstrBotConfig(dict): with open(config_path, "r", encoding="utf-8-sig") as f: conf_str = f.read() - if conf_str.startswith("/ufeff"): # remove BOM - conf_str = conf_str.encode("utf8")[3:].decode("utf8") conf = json.loads(conf_str) # 检查配置完整性,并插入