Update ReactFiberExpirationTime.js (#17825)

replaced 'add' with 'subtract'
This commit is contained in:
haseeb
2020-02-10 12:37:49 +00:00
committed by GitHub
parent 89c6042df3
commit b63cb6f6cf
+1 -1
View File
@@ -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);
}