Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dedup conditional in ReactScheduler (facebook#12680)
**what is the change?:** We had a condition to set either 'performance.now' or 'Date.now' as the 'now' function. Then later we had another conditional checking again if 'performance.now' was supported, and using it if so, otherwise falling back to 'Date.now'. More efficient to just use the 'now' shortcut defined above. **why make this change?:** Fewer lines, clearer code. **test plan:** Now that we have tests we can run them :)
- Loading branch information