Skip to content

Commit 4f70ed4

Browse files
trivikrghostdevv
andauthored
chore: remove destructuring of result object
Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com>
1 parent 66cde5b commit 4f70ed4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/composables/useCompareReplacements.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export function useCompareReplacements(packageNames: MaybeRefOrGetter<string[]>)
5252
const newReplacements = new Map(replacements.value)
5353
for (const result of results) {
5454
if (result.failed) continue
55-
56-
const { name, replacement } = result
57-
newReplacements.set(name, replacement)
55+
newReplacements.set(result.name, result.replacement)
5856
}
5957
replacements.value = newReplacements
6058
} finally {

0 commit comments

Comments
 (0)