Skip to content

Commit 875e3fa

Browse files
Reduce some lines of code
1 parent f45f110 commit 875e3fa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/src/main/java/org/schabi/newpipe/ui/components/video/VideoDescriptionSection.kt

+3-5
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,10 @@ fun VideoDescriptionSection(streamInfo: StreamInfo) {
160160
}
161161
}
162162

163-
if (streamInfo.ageLimit != StreamExtractor.NO_AGE_LIMIT) {
163+
val ageLimit = streamInfo.ageLimit
164+
if (ageLimit != StreamExtractor.NO_AGE_LIMIT) {
164165
item {
165-
MetadataItem(
166-
title = R.string.metadata_age_limit,
167-
value = streamInfo.ageLimit.toString()
168-
)
166+
MetadataItem(title = R.string.metadata_age_limit, value = ageLimit.toString())
169167
}
170168
}
171169

0 commit comments

Comments
 (0)