Skip to content

Don't create empty settings_old folder for fresh installs#2735

Merged
joeyballentine merged 1 commit intochaiNNer-org:mainfrom
RunDevelopment:fresh-settings-old
Apr 4, 2024
Merged

Don't create empty settings_old folder for fresh installs#2735
joeyballentine merged 1 commit intochaiNNer-org:mainfrom
RunDevelopment:fresh-settings-old

Conversation

@RunDevelopment
Copy link
Member

This fixes a small oversight in #2640.

Fresh installs have neither a settings.json nor a settings folder, but node local storage will create the settings folder. This cause fresh installs to always create an empty settings folder that was then migrated to a settings_old folder.

Of course, none of this was necessary. So I now check whether the settings folder exists before doing the migration.

@joeyballentine joeyballentine merged commit a63c652 into chaiNNer-org:main Apr 4, 2024
@RunDevelopment RunDevelopment deleted the fresh-settings-old branch April 4, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants