Skip to content

Commit

Permalink
Remove default value in case of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
123mpozzi committed Nov 6, 2024
1 parent 2ee1f11 commit d244a2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class PlayerModule(context: ReactApplicationContext) : BitmovinBaseModule(contex
val analyticsConfig = analyticsConfigJson?.toAnalyticsConfig()
val defaultMetadata = analyticsConfigJson?.getMap("defaultMetadata")?.toAnalyticsDefaultMetadata()
val enableMediaSession = playerConfigJson?.getMap("mediaControlConfig")
?.toMediaControlConfig()?.isEnabled ?: true
?.toMediaControlConfig()?.isEnabled

val networkConfig = networkNativeId?.let { networkModule.getConfig(it) }
if (networkConfig != null) {
Expand Down

0 comments on commit d244a2c

Please sign in to comment.