mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
42497b60f5
I did a double take when I thought we didn't handle returning the error when reading the code and when I edited the code, typescript told me that there's no need to return as creating the error will throw. This PR makes it clear from the name of the function that we will throw.