mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
Refactor Vault.load_index into smaller private methods.
Split the `load_index` method in `src/seedpass/core/vault.py` into `_handle_legacy_file_migration`, `_restore_legacy_backup`, `_load_and_handle_decryption`, `_check_schema_version`, and `_apply_schema_migrations`. This improves readability and maintainability by separating the concerns of legacy file handling, decryption, and schema migration. Verified with existing tests in `src/tests/test_legacy_migration.py` and `src/tests/test_migrations.py`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
ece0dda09f
commit
e6ff619860