Skip to content

Commit 2e8adb8

Browse files
committed
update reducer
1 parent a108956 commit 2e8adb8

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

src/dev/i18n/extract_default_translations.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,12 @@ export async function matchEntriesWithExctractors(inputPath, options = {}) {
6767
absolute,
6868
});
6969

70-
const { codeEntries } = entries.reduce(
71-
(paths, entry) => {
72-
const resolvedPath = path.resolve(inputPath, entry);
73-
paths.codeEntries.push(resolvedPath);
74-
75-
return paths;
76-
},
77-
{ codeEntries: [] }
78-
);
70+
const codeEntries = entries.reduce((paths, entry) => {
71+
const resolvedPath = path.resolve(inputPath, entry);
72+
paths.push(resolvedPath);
73+
74+
return paths;
75+
}, []);
7976

8077
return [[codeEntries, extractCodeMessages]];
8178
}

0 commit comments

Comments
 (0)