Skip to content

Commit

Permalink
Update ReactFiberExpirationTime.js (#17825)
Browse files Browse the repository at this point in the history
replaced 'add' with 'subtract'
  • Loading branch information
haseebdaone authored Feb 10, 2020
1 parent 89c6042 commit b63cb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberExpirationTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;

// 1 unit of expiration time represents 10ms.
export function msToExpirationTime(ms: number): ExpirationTime {
// Always add an offset so that we don't clash with the magic number for NoWork.
// Always subtract an offset so that we don't clash with the magic number for NoWork.
return MAGIC_NUMBER_OFFSET - ((ms / UNIT_SIZE) | 0);
}

Expand Down

0 comments on commit b63cb6f

Please sign in to comment.