Skip to content

Commit

Permalink
code review fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Markon committed Nov 19, 2019
1 parent 1505279 commit 706543e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dependencies/__tests__/useStoreDependency-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ describe('useStoreDependency', () => {
// not implemented correctly, as the immutables will not be strictly
// equal, sending useStoreDependency into an infinite loop
// https://github.com/HubSpot/general-store/issues/74
expect(true).toBe(true);
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/utils/ObjectUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function shallowEqual(obj1: any, obj2: any): Boolean {
// https://github.com/immutable-js/immutable-js/blob/59c291a2b37693198a0950637c5d55cd14dd6bc4/src/is.js#L52-L55
if (obj1.hashCode() !== obj2.hashCode()) {
return false;
} else {
} else if (typeof obj1.equals === 'function') {
return obj1.equals(obj2);
}
}
Expand Down

0 comments on commit 706543e

Please sign in to comment.