mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
8daf53e329
Using goog.asserts will work with the compiler. So rather than simply casting a nullable value when passing to a method, we can use an assert which will correct the type and print a log if it somehow is null. This is not the same goog.asserts found in closure library, this simply calls console.assert, but it is not required to do anything for the compiler help. Change-Id: I2548e39e772f0aa7ec41437cf9f5a2be383e0fbd