Skip to content

Commit f4cda1b

Browse files
authored
🔥 Truncation is no longer needed!
1 parent 0579170 commit f4cda1b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fugu-edit/src/js/lib/files.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ export async function walkFolder(dir, path = []) {
223223
export async function writeFile(handler, contents) {
224224
// Create a writer
225225
const writer = await handler.createWriter();
226-
// Make sure we start with an empty file
227-
await writer.truncate(0);
228226
// Write the full length of the contents
229227
await writer.write(0, contents);
230228
// Close the file and write the contents to disk

0 commit comments

Comments
 (0)