Skip to content

Commit 687623a

Browse files
authored
Run prettier
1 parent 51f5e7b commit 687623a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/react-server-dom-webpack/src/ReactFlightWebpackPlugin.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,14 @@ export default class ReactFlightWebpackPlugin {
277277
chunkGroup.chunks.forEach(function (c) {
278278
// eslint-disable-next-line no-for-of-loops/no-for-of-loops
279279
for (const file of c.files) {
280-
if (!(file.endsWith('.js') || file.endsWith('.mjs'))) return;
281-
if (file.endsWith('.hot-update.js') || file.endsWith('.hot-update.mjs')) return;
280+
if (!(file.endsWith('.js') || file.endsWith('.mjs'))) {
281+
return;
282+
}
283+
if (
284+
file.endsWith('.hot-update.js') ||
285+
file.endsWith('.hot-update.mjs')
286+
)
287+
return;
282288
chunks.push(c.id, file);
283289
break;
284290
}

0 commit comments

Comments
 (0)