Skip to content

Commit c6eb066

Browse files
author
Stephan Dilly
committed
cache config path call
1 parent 93065fb commit c6eb066

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ fn migrate_config() -> Result<()> {
215215
!entry.file_name().to_string_lossy().ends_with(".log")
216216
});
217217

218+
let config_path: PathBuf = get_app_config_path()?;
218219
for entry in entries {
219-
let mut config_path: PathBuf = get_app_config_path()?;
220+
let mut config_path: PathBuf = config_path.clone();
220221
config_path.push(entry.file_name());
221222
fs::rename(entry.path(), config_path)?;
222223
}

0 commit comments

Comments
 (0)