Skip to content

Commit 9b79002

Browse files
authored
Small tweaks to SSR to match #14594 (#14618)
* Small tweaks to SSR to match #14594 * Remove unnecessary comparison
1 parent 975e8be commit 9b79002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ReactShallowRenderer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class ReactShallowRenderer {
303303
this._validateCurrentlyRenderingComponent();
304304
this._createWorkInProgressHook();
305305

306-
const nextDeps = deps !== undefined && deps !== null ? deps : null;
306+
const nextDeps = deps !== undefined ? deps : null;
307307

308308
if (
309309
this._workInProgressHook !== null &&

0 commit comments

Comments
 (0)