w3c / screen-orientation

The screen orientation lock specification
https://w3c.github.io/screen-orientation/
Other
27 stars 29 forks source link

"reject and nullify the current lock promise" nit #233

Closed annevk closed 1 year ago

annevk commented 2 years ago

Most callers do a null check but this algorithm does one too. Either make an assert in the algorithm that it's not null and fix the remaining caller, or simplify the callers. The current combination is a tad confusing.