Skip to content

Commit e66ef7e

Browse files
committed
you live and you learn
1 parent ded79ba commit e66ef7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-tauri/src/filesystem/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn save_to_cache(state: &mut MutexGuard<AppState>) {
133133

134134
let mut file = fs::OpenOptions::new()
135135
.write(true)
136-
.truncate(true) // I have literally no clue why but without truncate, the JSON gets messed up and a trailing character error occurs when deserializing the file contents.
136+
.truncate(true)
137137
.open(CACHE_FILE_PATH)
138138
.unwrap();
139139

0 commit comments

Comments
 (0)