Skip to content

Commit

Permalink
style: apply linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Dec 20, 2018
1 parent db57f49 commit 065076a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/generate-unique-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const LAST_NUMBER_WEAK_MAP = new WeakMap<(Map<number, any> | Set<number>), numbe
* The value of the constant Number.MAX_SAFE_INTEGER equals (2 ** 53 - 1) but it
* is fairly new.
*/
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
const MAX_SAFE_INTEGER = (Number.MAX_SAFE_INTEGER === undefined) ? 9007199254740991 : Number.MAX_SAFE_INTEGER;

const cache = (collection: (Map<number, any> | Set<number>), nextNumber: number) => {
LAST_NUMBER_WEAK_MAP.set(collection, nextNumber);
Expand Down

0 comments on commit 065076a

Please sign in to comment.