Skip to content

Commit

Permalink
Use safe cast operator for examples in README
Browse files Browse the repository at this point in the history
Co-authored-by: Mattias Buelens <[email protected]>
  • Loading branch information
OlegRyz and MattiasBuelens authored Sep 9, 2024
1 parent f425cc2 commit 0f748d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/uplynk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fun logCurrentAd() {

fun logCurrentAdBreak() {
val uplynkAdBreak =
theoplayerView.player.ads.currentAdBreak?.customData as UplynkAdBreak? ?: return
theoplayerView.player.ads.currentAdBreak?.customData as? UplynkAdBreak ?: return
Log.d(
TAG, "UplynkAdBreak: " +
"type = ${uplynkAdBreak.type}, " +
Expand Down

0 comments on commit 0f748d9

Please sign in to comment.