Skip to content

Commit

Permalink
Reduce some lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Sep 1, 2024
1 parent f45f110 commit 875e3fa
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,10 @@ fun VideoDescriptionSection(streamInfo: StreamInfo) {
}
}

if (streamInfo.ageLimit != StreamExtractor.NO_AGE_LIMIT) {
val ageLimit = streamInfo.ageLimit
if (ageLimit != StreamExtractor.NO_AGE_LIMIT) {
item {
MetadataItem(
title = R.string.metadata_age_limit,
value = streamInfo.ageLimit.toString()
)
MetadataItem(title = R.string.metadata_age_limit, value = ageLimit.toString())
}
}

Expand Down

0 comments on commit 875e3fa

Please sign in to comment.