Skip to content

Commit fdf12f9

Browse files
Filip Pasternakakameco
authored andcommitted
Syntax improvement
1 parent 2b4ceb1 commit fdf12f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ module.exports = async (locales, pattern, buildDir, opts) => {
8888

8989
const extractorOptions = { defaultLocale }
9090

91-
moduleName && (extractorOptions.moduleSourceName = moduleName)
91+
if (moduleName) {
92+
extractorOptions.moduleSourceName = moduleName
93+
}
9294

9395
const newLocaleMaps = await extractReactIntl(
9496
locales,

0 commit comments

Comments
 (0)