Skip to content

Commit

Permalink
Small tweaks to SSR to match #14594 (#14618)
Browse files Browse the repository at this point in the history
* Small tweaks to SSR to match #14594

* Remove unnecessary comparison
  • Loading branch information
gaearon authored Jan 18, 2019
1 parent 975e8be commit 9b79002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReactShallowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class ReactShallowRenderer {
this._validateCurrentlyRenderingComponent();
this._createWorkInProgressHook();

const nextDeps = deps !== undefined && deps !== null ? deps : null;
const nextDeps = deps !== undefined ? deps : null;

if (
this._workInProgressHook !== null &&
Expand Down

0 comments on commit 9b79002

Please sign in to comment.