Skip to content

Commit c64d8cd

Browse files
committed
style: format backup importer
1 parent 59884be commit c64d8cd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

astrbot/core/backup/importer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ def _get_major_version(version_str: str) -> str:
5959
return "0.0"
6060

6161

62-
63-
6462
def _validate_path_within(target_path: Path, base_dir: Path) -> bool:
6563
"""Validate that target_path is within base_dir after resolving symlinks.
6664
@@ -74,6 +72,7 @@ def _validate_path_within(target_path: Path, base_dir: Path) -> bool:
7472
except (OSError, ValueError):
7573
return False
7674

75+
7776
CMD_CONFIG_FILE_PATH = os.path.join(get_astrbot_data_path(), "cmd_config.json")
7877
KB_PATH = get_astrbot_knowledge_base_path()
7978
DEFAULT_PLATFORM_STATS_INVALID_COUNT_WARN_LIMIT = 5

0 commit comments

Comments
 (0)