Skip to content

Commit 006c615

Browse files
committed
fix: correct typos in comments within mergeDraft function
1 parent ed2c3cc commit 006c615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/internal/studio/files.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function mergeDraft(dbFiles: DraftSyncFile[] = [], draftAdditions: DraftF
2727
// Compute file name
2828
const mergedFiles: DraftSyncFile[] = JSON.parse(JSON.stringify(dbFiles))
2929

30-
// Merge darft additions
30+
// Merge draft additions
3131
for (const addition of additions) {
3232
// File is new
3333
if (addition.new) {
@@ -42,7 +42,7 @@ export function mergeDraft(dbFiles: DraftSyncFile[] = [], draftAdditions: DraftF
4242
const oldPathExistInCache = additions.find(a => a.path === addition.oldPath)
4343
if (oldPathExistInCache) {
4444
mergedFiles.push({ path: addition.path, parsed: addition.parsed })
45-
// Update exsiting renamed file data
45+
// Update existing renamed file data
4646
}
4747
else {
4848
const file = mergedFiles.find(f => f.path === addition.oldPath)

0 commit comments

Comments
 (0)