From b63cb6f6cf18bbe28eb0a443c64fd9b87d79616d Mon Sep 17 00:00:00 2001 From: haseeb Date: Mon, 10 Feb 2020 12:37:49 +0000 Subject: [PATCH] Update ReactFiberExpirationTime.js (#17825) replaced 'add' with 'subtract' --- packages/react-reconciler/src/ReactFiberExpirationTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/ReactFiberExpirationTime.js b/packages/react-reconciler/src/ReactFiberExpirationTime.js index 72d58dff4eb9f..f79f4cdaaac97 100644 --- a/packages/react-reconciler/src/ReactFiberExpirationTime.js +++ b/packages/react-reconciler/src/ReactFiberExpirationTime.js @@ -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); }